mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
17 lines
235 B
Zig
17 lines
235 B
Zig
const std = @import("std");
|
|
|
|
pub fn main() void {
|
|
print();
|
|
}
|
|
|
|
fn print() void {
|
|
const msg = "Hello, World!\n";
|
|
const stdout = std.io.getStdOut();
|
|
stdout.writeAll(msg) catch unreachable;
|
|
}
|
|
|
|
// run
|
|
//
|
|
// Hello, World!
|
|
//
|