Update 033_iferror.zig

This commit is contained in:
Dave Gauer 2021-08-28 10:57:51 -04:00 committed by GitHub
parent 84c9c4072c
commit 32ff7cf42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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,