diff options
Diffstat (limited to 'exercises/033_iferror.zig')
-rw-r--r-- | exercises/033_iferror.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exercises/033_iferror.zig b/exercises/033_iferror.zig index 2aacc1e..f281b8d 100644 --- a/exercises/033_iferror.zig +++ b/exercises/033_iferror.zig @@ -15,6 +15,12 @@ // We'll take it even further and use a switch statement to handle // the error types. // +// if (foo) |value| { +// ... +// } else |err| switch(err) { +// ... +// } +// const MyNumberError = error{ TooBig, TooSmall, |