mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-12 13:00:47 -05:00
10 lines
467 B
Diff
10 lines
467 B
Diff
--- exercises/033_iferror.zig 2023-10-03 22:15:22.122241138 +0200
|
|
+++ answers/033_iferror.zig 2023-10-05 20:04:06.989432300 +0200
|
|
@@ -39,6 +39,7 @@
|
|
std.debug.print("={}. ", .{value});
|
|
} else |err| switch (err) {
|
|
MyNumberError.TooBig => std.debug.print(">4. ", .{}),
|
|
+ MyNumberError.TooSmall => std.debug.print("<4. ", .{}),
|
|
// Please add a match for TooSmall here and have it print: "<4. "
|
|
}
|
|
}
|