zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a8d8ce9733a6e859fef3372008ae81a0b57027ec (tree)
parent 75a720565bb72e7fab03346df6a35e9a8f380962
Author: Paul Espinosa <mrpaul@aestheticwisdom.com>
Date:   Mon, 13 Jul 2020 15:29:46 +0700

Use Writer for Language Reference Hello World Example

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

Diffstat:
Mdoc/langref.html.in | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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#}