aboutsummaryrefslogtreecommitdiff
path: root/exercises/12_while2.zig
diff options
context:
space:
mode:
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...
// }
//