From 77b72e09339194631b86e1e91910fd55a1227827 Mon Sep 17 00:00:00 2001 From: Will Clardy Date: Mon, 15 Feb 2021 01:02:53 -0500 Subject: Add missing opening braces in while statements --- exercises/12_while2.zig | 4 ++-- 1 file 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... // } // -- cgit v1.2.3-ZIG From a69f0923e106d6e6e2d0fac5ee3091e2719959db Mon Sep 17 00:00:00 2001 From: Will Clardy Date: Mon, 15 Feb 2021 01:03:30 -0500 Subject: Replace unclosed opening paren with dash --- exercises/12_while2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/12_while2.zig b/exercises/12_while2.zig index 2d0bd79..ef53ea0 100644 --- a/exercises/12_while2.zig +++ b/exercises/12_while2.zig @@ -1,7 +1,7 @@ // // 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) { -- cgit v1.2.3-ZIG