mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-04 09:23:29 +02:00
progress
This commit is contained in:
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user