From ba78d71b09bc7d139f55fe0d93688e2638e6b8e4 Mon Sep 17 00:00:00 2001 From: xackus <14938807+xackus@users.noreply.github.com> Date: Thu, 5 Dec 2019 22:35:23 +0100 Subject: [PATCH 1/3] docs: fix assembly example --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 446a201bbe..aa73993581 100644 --- a/doc/langref.html.in +++ b/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; } From 71354498c95ae30c661903f7a0baf5a597df4976 Mon Sep 17 00:00:00 2001 From: xackus <14938807+xackus@users.noreply.github.com> Date: Thu, 5 Dec 2019 22:38:59 +0100 Subject: [PATCH 2/3] docs: add html lang and minor fixes --- doc/langref.html.in | 20 ++++++++------------ lib/std/special/docs/index.html | 4 ++-- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index aa73993581..aa38fca37e 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1,10 +1,10 @@ - + Documentation - The Zig Programming Language -