diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-02-15 09:58:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 09:58:39 -0500 |
commit | 882a6b6198148673ec97c6e38443f8e2a6a6b576 (patch) | |
tree | 3486dcff880645b31457ba9b46d1e6fde1b3af42 /exercises/12_while2.zig | |
parent | ca330b00bcec0ff5707ccbdc4e905e41c3dc8c9a (diff) | |
parent | fa83fc47e56b3d665647199d4680fe0197778780 (diff) |
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.zig | 6 |
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... // } // |