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:
Paul Espinosa 2020-07-13 15:29:46 +07:00 committed by Andrew Kelley
parent 75a720565b
commit a8d8ce9733

View File

@ -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#}