From 009b2963a8f8d2111e7b3473b980b0edac2baf48 Mon Sep 17 00:00:00 2001 From: Rabia Alhaffar Date: Tue, 8 Sep 2020 05:23:08 +0300 Subject: [PATCH] Fix typo mistake in one of for loops --- cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheatsheet.md b/cheatsheet.md index 27669a23..50ee8aa4 100644 --- a/cheatsheet.md +++ b/cheatsheet.md @@ -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: