Merge pull request #540 from Rabios/patch-1

Fix typo mistake in ranged for loop
This commit is contained in:
Rob Loach 2020-09-08 00:34:51 -04:00 committed by GitHub
commit 7178460415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: