diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-06-30 17:56:42 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-06-30 17:56:42 -0400 |
commit | 584993b7b8110bcfc5d8af543d889d671e78a484 (patch) | |
tree | 3a2d2adaa77e0495f1ed0822c904e581b330a524 /exercises | |
parent | 08217c940c041a864710814dde614594bddf1748 (diff) | |
download | ziglings-584993b7b8110bcfc5d8af543d889d671e78a484.tar.gz ziglings-584993b7b8110bcfc5d8af543d889d671e78a484.tar.bz2 ziglings-584993b7b8110bcfc5d8af543d889d671e78a484.tar.xz ziglings-584993b7b8110bcfc5d8af543d889d671e78a484.zip |
Must use capture value
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/033_iferror.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/033_iferror.zig b/exercises/033_iferror.zig index 67777a9..0e48262 100644 --- a/exercises/033_iferror.zig +++ b/exercises/033_iferror.zig @@ -30,7 +30,7 @@ pub fn main() void { var n = numberMaybeFail(num); if (n) |value| { - std.debug.print("=4. ", .{}); + std.debug.print("={}. ", .{value}); } else |err| switch (err) { MyNumberError.TooBig => std.debug.print(">4. ", .{}), // Please add a match for TooSmall here and have it print: "<4. " |