mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
docs: fix assembly example
This commit is contained in:
parent
1baaf9a503
commit
ba78d71b09
@ -6006,7 +6006,7 @@ pub fn main() void {
|
||||
{#target_linux_x86_64#}
|
||||
pub fn main() noreturn {
|
||||
const msg = "hello world\n";
|
||||
_ = syscall3(SYS_write, STDOUT_FILENO, @ptrToInt(&msg), msg.len);
|
||||
_ = syscall3(SYS_write, STDOUT_FILENO, @ptrToInt(msg), msg.len);
|
||||
_ = syscall1(SYS_exit, 0);
|
||||
unreachable;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user