diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-07-22 10:52:04 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-07-22 10:52:04 +0200 |
| commit | 1f6ce9a2684149c99606ba2ccbfa7092d72cdeae (patch) | |
| tree | 2edab32995d90203155546ef575bbd9db45c377b /exercises/034_quiz4.zig | |
| parent | b9a372bde810939c35d90fd7fc98bc262e7632d8 (diff) | |
| parent | 4044b93dd210cb3eb8c1993f2be0e286c4383f2f (diff) | |
Merge pull request 'Fix zig 0.15.0-dev.1149+4e6a04929 build errors' (#283) from zawupf/ziglings-exercises:zig-0.15 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/283
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. |
