zig/test/standalone/hello_world/hello.zig
2019-11-14 12:38:30 -05:00

9 lines
242 B
Zig

const std = @import("std");
pub fn main() !void {
const stdout_file = std.io.getStdOut();
// If this program encounters pipe failure when printing to stdout, exit
// with an error.
try stdout_file.write("Hello, world!\n");
}