From 584993b7b8110bcfc5d8af543d889d671e78a484 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 30 Jun 2021 17:56:42 -0400 Subject: Must use capture value --- exercises/033_iferror.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/033_iferror.zig') 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. " -- cgit v1.2.3-ZIG