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:
committed by
Andrew Kelley
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#}
|
||||
|
||||
Reference in New Issue
Block a user