authorgravatar for mrpaul@aestheticwisdom.comPaul Espinosa <mrpaul@aestheticwisdom.com> 2020-07-13 15:29:46+07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-07-13 22:41:57+00:00
loga8d8ce9733a6e859fef3372008ae81a0b57027ec
tree87145a622b4747defd2a534fb244cf41016ffc76
parent75a720565bb72e7fab03346df6a35e9a8f380962

Use Writer for Language Reference Hello World Example

`OutStream` has been deprecated, so the "Hello, World!" example has been updated to use `Writer`.

1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -231,7 +231,7 @@...@@ -231,7 +231,7 @@
231const std = @import("std");231const std = @import("std");
232232
233pub fn main() !void {233pub fn main() !void {
234 const stdout = std.io.getStdOut().outStream();234 const stdout = std.io.getStdOut().writer();
235 try stdout.print("Hello, {}!\n", .{"world"});235 try stdout.print("Hello, {}!\n", .{"world"});
236}236}
237 {#code_end#}237 {#code_end#}