summaryrefslogtreecommitdiffstats
path: root/Help/command/foreach.rst
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-01-29 15:52:14 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2018-01-29 15:52:14 (GMT)
commit7771657cd0e23364b55be4ad343f9291bb10ea98 (patch)
tree312ca7a0a7bcc306de3c95056965a9f039f7bab4 /Help/command/foreach.rst
parent92cd3d06772ada13935790d66927ab4663c7d628 (diff)
downloadCMake-7771657cd0e23364b55be4ad343f9291bb10ea98.zip
CMake-7771657cd0e23364b55be4ad343f9291bb10ea98.tar.gz
CMake-7771657cd0e23364b55be4ad343f9291bb10ea98.tar.bz2
Help: Better explain that foreach(RANGE ) is inclusive.
Diffstat (limited to 'Help/command/foreach.rst')
-rw-r--r--Help/command/foreach.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Help/command/foreach.rst b/Help/command/foreach.rst
index c0f3679..106ba73 100644
--- a/Help/command/foreach.rst
+++ b/Help/command/foreach.rst
@@ -26,14 +26,14 @@ list.
Foreach can also iterate over a generated range of numbers. There are
three types of this iteration:
-* When specifying single number, the range will have elements 0 to
- "total".
+* When specifying single number, the range will have elements [0, ... to
+ "total"] (inclusive).
* When specifying two numbers, the range will have elements from the
- first number to the second number.
+ first number to the second number (inclusive).
* The third optional number is the increment used to iterate from the
- first number to the second number.
+ first number to the second number (inclusive).
::