zig

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

commit 7423d6a4044bd2c92ebfe5023bd4f3ad2789c793 (tree)
parent e41342af83022202c6e413cd84c12b41f19c681a
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 19 Dec 2025 17:38:19 -0800

fix "hello world"

14K -> 57K

Diffstat:
Mtest/standalone/simple/hello_world/hello.zig | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/standalone/simple/hello_world/hello.zig b/test/standalone/simple/hello_world/hello.zig @@ -1,5 +1,8 @@ const std = @import("std"); +var static_single_threaded_io: std.Io.Threaded = .init_single_threaded; +const io = static_single_threaded_io.ioBasic(); + pub fn main() !void { - try std.Io.File.stdout().writeAll("Hello, World!\n"); + try std.Io.File.stdout().writeStreamingAll(io, "Hello, World!\n"); }