diff options
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/034_quiz4.patch | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/patches/patches/034_quiz4.patch b/patches/patches/034_quiz4.patch index 15c95fc..7cf102c 100644 --- a/patches/patches/034_quiz4.patch +++ b/patches/patches/034_quiz4.patch @@ -1,15 +1,16 @@ ---- exercises/034_quiz4.zig 2025-07-22 09:55:51.337832401 +0200 -+++ answers/034_quiz4.zig 2025-07-22 10:05:08.320323184 +0200 -@@ -9,10 +9,10 @@ +--- exercises/034_quiz4.zig 2025-12-28 14:43:41.087943476 +0100 ++++ answers/034_quiz4.zig 2025-12-28 14:42:23.878472164 +0100 +@@ -10,11 +10,11 @@ const NumError = error{IllegalNumber}; -pub fn main() void { +pub fn main() !void { - var stdout = std.fs.File.stdout().writer(&.{}); + var stdout_writer = std.Io.File.stdout().writer(io, &.{}); + const stdout = &stdout_writer.interface; - const my_num: u32 = getNumber(); + const my_num: u32 = try getNumber(); - try stdout.interface.print("my_num={}\n", .{my_num}); + try stdout.print("my_num={}\n", .{my_num}); } |
