mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 10:58:58 +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!
|
||
|
//
|