This commit is contained in:
Adam Millerchip 2021-12-26 13:16:40 +09:00
parent 11428b6e38
commit dde56c9946
1 changed files with 1 additions and 1 deletions

View File

@ -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!