mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
Use Writer for Language Reference Hello World Example
`OutStream` has been deprecated, so the "Hello, World!" example has been updated to use `Writer`.
This commit is contained in:
parent
75a720565b
commit
a8d8ce9733
@ -231,7 +231,7 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn main() !void {
|
||||
const stdout = std.io.getStdOut().outStream();
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
try stdout.print("Hello, {}!\n", .{"world"});
|
||||
}
|
||||
{#code_end#}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user