summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormikkurogue <mikkurogue@noreply.codeberg.org>2025-01-07 10:15:59 +0000
committermikkurogue <mikkurogue@noreply.codeberg.org>2025-01-07 10:15:59 +0000
commit5cdaee74205e97da127d749b07cbe6e64ba6a940 (patch)
tree040fbd178d842937f198263ed5528a0372998faf
parentde353bcb3b6d7ef59bcf1ceb0a326ab6e5a4139f (diff)
Update: Remove the 4th branch in favour of just making that the else branch
Probably easier to not have an "unused" branch that returns the same as the else branch in the example. Signed-off-by: mikkurogue <mikkurogue@noreply.codeberg.org>
-rw-r--r--exercises/108_labeled_switch.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/exercises/108_labeled_switch.zig b/exercises/108_labeled_switch.zig
index d506cac..bd0b478 100644
--- a/exercises/108_labeled_switch.zig
+++ b/exercises/108_labeled_switch.zig
@@ -34,7 +34,6 @@
// 1 => continue :foo 2,
// 2 => continue :foo 3,
// 3 => return,
-// 4 => {},
// else => {},
// }
// std.debug.print("This statement cannot be reached");