Skip to content

Commit

Permalink
Fix typo mistake in one of for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabia Alhaffar authored Sep 8, 2020
1 parent 6abbd9d commit 009b296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ while (some_condition()) { /* do something */ }
```
// 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:
Expand Down

0 comments on commit 009b296

Please sign in to comment.