RosettaCodeData/Task/Hello-world-Newbie/Zig/hello-world-newbie-2.zig
2023-07-01 13:44:08 -04:00

9 lines
312 B
Zig

const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut();
// `try` is a shorthand for `fn_call() catch |err| return err;`.
// See also documentation for `catch`, `defer` and `errdefer`
// for code flow adjustments
try stdout.writer().writeAll("Hello world!\n");
}