diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-08-24 14:59:26 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-08-24 14:59:26 +0200 |
| commit | a46db7e0e84718d1898d26b3d798c767792c0779 (patch) | |
| tree | 9233974b52c566b83c865239fd7c73954315e2b1 /exercises/034_quiz4.zig | |
| parent | f5d2c5124c2728d14d4c349c9287edb00f9eb633 (diff) | |
| parent | 564ea3405d2dce481001c52b64784b5fce4bd37a (diff) | |
Merge branch 'main' into test-expect
Diffstat (limited to 'exercises/034_quiz4.zig')
| -rw-r--r-- | exercises/034_quiz4.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/034_quiz4.zig b/exercises/034_quiz4.zig index 2d843f2..8704397 100644 --- a/exercises/034_quiz4.zig +++ b/exercises/034_quiz4.zig @@ -10,11 +10,11 @@ const std = @import("std"); const NumError = error{IllegalNumber}; pub fn main() void { - const stdout = std.io.getStdOut().writer(); + var stdout = std.fs.File.stdout().writer(&.{}); const my_num: u32 = getNumber(); - try stdout.print("my_num={}\n", .{my_num}); + try stdout.interface.print("my_num={}\n", .{my_num}); } // This function is obviously weird and non-functional. But you will not be changing it for this quiz. |
