From 32ff7cf42a7fea8da525f1d00d89dce9d44c95b7 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 28 Aug 2021 10:57:51 -0400 Subject: Update 033_iferror.zig --- exercises/033_iferror.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'exercises/033_iferror.zig') 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, -- cgit v1.2.3-ZIG