aboutsummaryrefslogtreecommitdiff
path: root/exercises/12_while2.zig
diff options
context:
space:
mode:
authorDave Gauer <ratfactor@gmail.com>2021-02-15 09:58:39 -0500
committerGitHub <noreply@github.com>2021-02-15 09:58:39 -0500
commit0d212ecf5a9de1c0bb673a2b6a409de5a99a9d7b (patch)
tree3486dcff880645b31457ba9b46d1e6fde1b3af42 /exercises/12_while2.zig
parent44ccf4a0eb5bc37604f68ead194e5fb0dc637b98 (diff)
parenta69f0923e106d6e6e2d0fac5ee3091e2719959db (diff)
downloadziglings-0d212ecf5a9de1c0bb673a2b6a409de5a99a9d7b.tar.gz
ziglings-0d212ecf5a9de1c0bb673a2b6a409de5a99a9d7b.tar.bz2
ziglings-0d212ecf5a9de1c0bb673a2b6a409de5a99a9d7b.tar.xz
ziglings-0d212ecf5a9de1c0bb673a2b6a409de5a99a9d7b.zip
Merge pull request #20 from quexxon/exercise_12_fixes
Exercise 12 fixes
Diffstat (limited to 'exercises/12_while2.zig')
-rw-r--r--exercises/12_while2.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/12_while2.zig b/exercises/12_while2.zig
index 6f808c8..ef53ea0 100644
--- a/exercises/12_while2.zig
+++ b/exercises/12_while2.zig
@@ -1,17 +1,17 @@
//
// Zig 'while' statements can have an optional 'continue expression'
// which runs every time the while loop continues (either at the
-// end of the loop or when an explicit 'continue' is invoked (we'll
+// end of the loop or when an explicit 'continue' is invoked - we'll
// try those out next):
//
-// while (condition) : (continue expression)
+// while (condition) : (continue expression) {
// ...
// }
//
// Example:
//
// var foo = 2;
-// while (foo<10) : (foo+=2)
+// while (foo<10) : (foo+=2) {
// // Do something with even numbers less than 10...
// }
//