diff options
| author | Dave Gauer <[email protected]> | 2021-08-28 10:57:51 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-28 10:57:51 -0400 |
| commit | 1b2b90317cbddba417c65aa9d0076e55367b0876 (patch) | |
| tree | a865c286d031586d53f77f87491f87f03b37dc19 | |
| parent | 1c14338573344e12908d224acac98d59ecbdd6c9 (diff) | |
| download | ziglings-1b2b90317cbddba417c65aa9d0076e55367b0876.tar.xz ziglings-1b2b90317cbddba417c65aa9d0076e55367b0876.zip | |
Update 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, |
