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