summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-12-28 14:46:23 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-12-28 14:46:23 +0100
commit8f9daa12b27323c3151bc652a111126a56f21216 (patch)
tree379860b4bdd890bd3324cb9e417f7d016210c360 /patches
parent8e30debc6aa05a9313a085ba52b38d5c7224a7ea (diff)
exc. 34 migrated
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/034_quiz4.patch11
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});
}