Update 033_iferror.zig

pull/2/head
Dave Gauer 3 years ago committed by GitHub
parent 1c14338573
commit 1b2b90317c

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

Loading…
Cancel
Save