1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-06-10 17:56:05 +02:00

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
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

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,