summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWill Clardy <will@quexxon.net>2021-02-15 01:02:53 -0500
committerWill Clardy <will@quexxon.net>2021-02-15 01:02:53 -0500
commitbd30da390b0ee63f871401acedca55ad50dd47f1 (patch)
tree63da8a2ca70f008656f0d7fd7156ca47c392a746
parentd316d8c6f0b2a876d24b1a8b43112b552605b9a4 (diff)
Add missing opening braces in while statements
-rw-r--r--exercises/12_while2.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/12_while2.zig b/exercises/12_while2.zig
index 6f808c8..2d0bd79 100644
--- a/exercises/12_while2.zig
+++ b/exercises/12_while2.zig
@@ -4,14 +4,14 @@
// 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...
// }
//