diff options
Diffstat (limited to 'exercises/029_errdefer.zig')
-rw-r--r-- | exercises/029_errdefer.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/029_errdefer.zig b/exercises/029_errdefer.zig index 82fdfe1..6747b5b 100644 --- a/exercises/029_errdefer.zig +++ b/exercises/029_errdefer.zig @@ -32,7 +32,7 @@ fn makeNumber() MyErr!u32 { // Please make the "failed" message print ONLY if the makeNumber() // function exits with an error: - std.debug.print("failed!\n", .{}); + errdefer std.debug.print("failed!\n", .{}); var num = try getNumber(); // <-- This could fail! |