mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 18:38:45 +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!
|
|
//
|