Commit ba78d71b09

xackus <14938807+xackus@users.noreply.github.com>
2019-12-05 22:35:23
docs: fix assembly example
1 parent 1baaf9a
Changed files (1)
doc/langref.html.in
@@ -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;
 }