aboutsummaryrefslogtreecommitdiff
path: root/exercises/062_loop_expressions.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/062_loop_expressions.zig')
-rw-r--r--exercises/062_loop_expressions.zig4
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.
//