diff --git a/doc/langref.html.in b/doc/langref.html.in index 884f3b85ae..40815f5d1a 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1018,21 +1018,6 @@ const unwrapped = value catch 1234; unwrapped == 1234 -
%%aa catch unreachable
- const value: %u32 = 5678;
-%%value == 5678
- a and bx() x[] x.y
-!x -x -%x ~x *x &x ?x %x %%x ??x
+!x -x -%x ~x *x &x ?x %x ??x
x{}
* / % ** *%
+ - ++ +% -%
@@ -5218,9 +5203,8 @@ const c = @cImport({
You can mix Zig object files with any other object files that respect the C ABI. Example:
- {#header_close#}
- {#header_open|base64.zig#}
- {#code_begin|obj#}
+ base64.zig
+ {#code_begin|syntax#}
const base64 = @import("std").base64;
export fn decode_base_64(dest_ptr: &u8, dest_len: usize,
@@ -5234,8 +5218,7 @@ export fn decode_base_64(dest_ptr: &u8, dest_len: usize,
return decoded_size;
}
{#code_end#}
- {#header_close#}
- {#header_open|test.c#}
+ test.c
// This header is generated by zig from base64.zig
#include "base64.h"
@@ -5252,8 +5235,7 @@ int main(int argc, char **argv) {
return 0;
}
- {#header_close#}
- {#header_open|build.zig#}
+ build.zig
{#code_begin|syntax#}
const Builder = @import("std").build.Builder;