Loops/Infinite: Difference between revisions
debug.prints to stderr, but we want to follow other examples that print to stdout.
No edit summary |
(debug.prints to stderr, but we want to follow other examples that print to stdout.) |
||
Line 2,260:
<lang Zig>
const std = @import("std");
pub fn main() !void {▼
const stdout_wr = std.io.getStdOut().writer();
▲pub fn main() void {
while (true) try stdout_wr.writeAll("SPAM\n");
}
</lang>
|