aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Espinosa <mrpaul@aestheticwisdom.com>2020-07-13 15:29:46 +0700
committerAndrew Kelley <andrew@ziglang.org>2020-07-13 22:41:57 +0000
commita8d8ce9733a6e859fef3372008ae81a0b57027ec (patch)
tree87145a622b4747defd2a534fb244cf41016ffc76 /doc
parent75a720565bb72e7fab03346df6a35e9a8f380962 (diff)
downloadzig-a8d8ce9733a6e859fef3372008ae81a0b57027ec.tar.gz
zig-a8d8ce9733a6e859fef3372008ae81a0b57027ec.zip
Use Writer for Language Reference Hello World Example
`OutStream` has been deprecated, so the "Hello, World!" example has been updated to use `Writer`.
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in2
1 files changed, 1 insertions, 1 deletions
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#}