mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
Merge pull request #540 from Rabios/patch-1
Fix typo mistake in ranged for loop
This commit is contained in:
commit
7178460415
@ -345,7 +345,7 @@ while (some_condition()) { /* do something */ }
|
|||||||
|
|
||||||
```
|
```
|
||||||
// ranged for
|
// ranged for
|
||||||
for (x : [1,2,3]) { print(i); }
|
for (i : [1, 2, 3]) { print(i); }
|
||||||
```
|
```
|
||||||
|
|
||||||
Each of the loop styles can be broken using the `break` statement. For example:
|
Each of the loop styles can be broken using the `break` statement. For example:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user