diff --git a/doc/langref.html.in b/doc/langref.html.in
index 015865ee3bfdfc73bf664794462b75d2b7871e2d..340cfdd303003417f993bde5df2aa4d4a0db6f95 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#}