Skip to content

Commit 4fc945d

Browse files
authored
Merge pull request #531 from ProvableHQ/IGI-111/empty-loops
Update for loop docs
2 parents c80ec3d + c7a0c19 commit 4fc945d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

documentation/language/05_control_flow.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ Return statements are declared as `return {expression};`.
4646

4747
### For Loops
4848

49-
For loops are declared as `for {variable: type} in {lower bound}..{upper bound}`. The loop bounds must be integer constants of the same type. Furthermore, the lower bound must be
50-
less than the upper bound. Nested loops are supported.
49+
For loops are declared as `for {variable: type} in {lower bound}..{upper bound}`.
50+
The loop bounds must be integer constants of the same type. Furthermore, if
51+
the lower bound is superior or equal to the upper bound, the loop will result in no operations.
52+
Nested loops are supported.
5153

5254

5355
```leo

0 commit comments

Comments
 (0)