summaryrefslogtreecommitdiff
path: root/exercises/085_async2.zig
diff options
context:
space:
mode:
authormikkurogue <michael.lindemans@outlook.com>2025-01-04 11:56:25 +0000
committermikkurogue <michael.lindemans@outlook.com>2025-01-04 11:56:25 +0000
commitde353bcb3b6d7ef59bcf1ceb0a326ab6e5a4139f (patch)
tree081f93fce6b2f728984364dde1dda708e4159ee0 /exercises/085_async2.zig
parent5ed3af57ee908017e12a3ed60478e1e816221d49 (diff)
Update: 108 Labeled switch example to contain default case for exhaustion
Update example text to give clarity on default/exhaustive case. Reasoning: The input for the example will not compile if user would want to test this for the logic of a labeled switch. Due the input not being an exhaustive input but rather "any u8 integer" (for the lack of better terminology) we need to use the else branch to indicate that the default case is handled, in this case by just emulating the '4' branch, but this could return an error.InvalidCaseProvided for example. Signed-off-by: mikkurogue <michael.lindemans@outlook.com>
Diffstat (limited to 'exercises/085_async2.zig')
0 files changed, 0 insertions, 0 deletions