summaryrefslogtreecommitdiff
path: root/exercises/108_labeled_switch.zig
diff options
context:
space:
mode:
authorchrboesch <chrboesch@noreply.codeberg.org>2025-01-08 12:18:25 +0000
committerchrboesch <chrboesch@noreply.codeberg.org>2025-01-08 12:18:25 +0000
commit54f743ba43630a452f8104b5b21fbbcdeefe866f (patch)
tree83c3b9a1f0982ef8263b3759a6393671ff481b12 /exercises/108_labeled_switch.zig
parent87b258d0a90af4cf5e16986226b589c2a541db32 (diff)
Update exercises/108_labeled_switch.zig
The sentence was slightly unclear Signed-off-by: chrboesch <chrboesch@noreply.codeberg.org>
Diffstat (limited to 'exercises/108_labeled_switch.zig')
-rw-r--r--exercises/108_labeled_switch.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/exercises/108_labeled_switch.zig b/exercises/108_labeled_switch.zig
index 1e39935..24cf2fa 100644
--- a/exercises/108_labeled_switch.zig
+++ b/exercises/108_labeled_switch.zig
@@ -46,9 +46,10 @@
// 3. In the case '2' we repeat the same pattern as case '1'
// but instead the value to be evaluated is now '3';
// 4. Finally we get to case '3', where we return from the function as a whole.
-// 5. In this example as the input has no clear exhaustive patterns but a essentially
-// any u8 integer, we need to handle any case that is not explicitly handled
-// by using the `else => {}` branch as a default case.
+// 5. In this example, since the input does not have clear, exhaustive patterns and
+// can essentially be any `u8` integer, we need to handle all cases not explicitly
+// covered by using the `else => {}` branch as the default case.
+
//
// Since step 4 or a break stament do not exist in this switch, the debug statement is
// never executed