From a8d8ce9733a6e859fef3372008ae81a0b57027ec Mon Sep 17 00:00:00 2001 From: Paul Espinosa Date: Mon, 13 Jul 2020 15:29:46 +0700 Subject: [PATCH] Use Writer for Language Reference Hello World Example `OutStream` has been deprecated, so the "Hello, World!" example has been updated to use `Writer`. --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 015865ee3b..340cfdd303 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -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#}