diff options
| author | Dave Gauer <[email protected]> | 2021-04-17 20:03:04 -0400 |
|---|---|---|
| committer | Dave Gauer <[email protected]> | 2021-04-17 20:03:04 -0400 |
| commit | 881db5eab22b2721be7fdab01286215c605cfcd0 (patch) | |
| tree | f27a85d586aec05ee7d4f864fdf34f92f247821f /exercises/062_loop_expressions.zig | |
| parent | 77a8a123f71b7d94ffabb001f3a7d3a2b4190660 (diff) | |
| download | ziglings-881db5eab22b2721be7fdab01286215c605cfcd0.tar.xz ziglings-881db5eab22b2721be7fdab01286215c605cfcd0.zip | |
Clarity for 062 and tupni for 064
Diffstat (limited to 'exercises/062_loop_expressions.zig')
| -rw-r--r-- | exercises/062_loop_expressions.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exercises/062_loop_expressions.zig b/exercises/062_loop_expressions.zig index 8161b2e..a40b622 100644 --- a/exercises/062_loop_expressions.zig +++ b/exercises/062_loop_expressions.zig @@ -24,6 +24,10 @@ // is probably not what you want. So consider the else clause // essential when using loops as expressions. // +// const four: u8 = while (true) { +// break 4; +// }; // <-- ERROR! Implicit 'else void' here! +// // With that in mind, see if you can fix the problem with this // program. // |
