From 2c25c8aeed844811169b0647c087cb47a38a3cb2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 19 Jan 2018 03:36:54 -0500 Subject: [PATCH] docs: remove references to %% prefix operator also cleanup the table of contents --- doc/langref.html.in | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 884f3b85a..40815f5d1 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1018,21 +1018,6 @@ const unwrapped = value catch 1234; unwrapped == 1234 - -
%%a
- - - - Equivalent to: -
a catch unreachable
- - -
const value: %u32 = 5678;
-%%value == 5678
- -
a and b
@@ -1260,7 +1245,7 @@ const ptr = &x; {#header_close#} {#header_open|Precedence#}
x() 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;