mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
Help: Better explain that foreach(RANGE ) is inclusive.
This commit is contained in:
1 parent
92cd3d0677
commit
7771657cd0
1 file changed
+4
-4
@@ -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).
|
||||
|
||||
::
|
||||
|
||||
|
||||
Reference in new issue
Block a user