summaryrefslogtreecommitdiff
path: root/exercises/026_hello2.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-07-22 10:52:04 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-07-22 10:52:04 +0200
commit1f6ce9a2684149c99606ba2ccbfa7092d72cdeae (patch)
tree2edab32995d90203155546ef575bbd9db45c377b /exercises/026_hello2.zig
parentb9a372bde810939c35d90fd7fc98bc262e7632d8 (diff)
parent4044b93dd210cb3eb8c1993f2be0e286c4383f2f (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/026_hello2.zig')
-rw-r--r--exercises/026_hello2.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/026_hello2.zig b/exercises/026_hello2.zig
index cd59b86..582dba9 100644
--- a/exercises/026_hello2.zig
+++ b/exercises/026_hello2.zig
@@ -16,12 +16,12 @@ const std = @import("std");
//
pub fn main() !void {
// We get a Writer for Standard Out so we can print() to it.
- const stdout = std.io.getStdOut().writer();
+ var stdout = std.fs.File.stdout().writer(&.{});
// Unlike std.debug.print(), the Standard Out writer can fail
// with an error. We don't care _what_ the error is, we want
// to be able to pass it up as a return value of main().
//
// We just learned of a single statement which can accomplish this.
- stdout.print("Hello world!\n", .{});
+ stdout.interface.print("Hello world!\n", .{});
}