From 4d8b40648ecf90b9f27d2daf7d77f4e66efd5ea5 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 17 Apr 2021 20:03:04 -0400 Subject: Clarity for 062 and tupni for 064 --- exercises/062_loop_expressions.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'exercises/062_loop_expressions.zig') 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. // -- cgit v1.2.3-ZIG