This commit is contained in:
2026-06-04 15:03:31 +02:00
parent 77e39463d4
commit b8ba0dbb54
6 changed files with 10 additions and 6 deletions
+1 -1
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!