diff options
| author | Paul <mrpaul@aestheticwisdom.com> | 2020-07-11 09:09:07 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-11 09:09:07 +0700 |
| commit | 5afa7f2545a5f350bbac4c9d9349a7fbbd8f0977 (patch) | |
| tree | 408e5269b2a974403e32cce8088bf16024a1ec87 | |
| parent | f510f385920b9a22bd1e68839cd4be3eea092e4d (diff) | |
| download | zig-5afa7f2545a5f350bbac4c9d9349a7fbbd8f0977.tar.gz zig-5afa7f2545a5f350bbac4c9d9349a7fbbd8f0977.zip | |
Update doc/langref.html.in
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
| -rw-r--r-- | doc/langref.html.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index cf9e485e8a..0f17f4c096 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -273,8 +273,8 @@ pub fn main() !void { </p> <p> In the <code>hello.zig</code> code sample, the <code>main</code> function is declared - with the {#syntax#}!void{#endsyntax#} return type. This return type tells the Zig compiler, - and other people reading the code, the function will not return a value and it <i>might</i> fail. + with the {#syntax#}!void{#endsyntax#} return type. This return type tells the Zig compiler + and other people reading the code that the function will not return a value and it <i>might</i> fail. The {#syntax#}!{#endsyntax#} (bang, exclamation mark) before the {#syntax#}void{#endsyntax#} {#link|type|Primitive Types#} is what tells the Zig compiler an {#link|error|Errors#} <i>might</i> occur. The {#syntax#}void{#endsyntax#} return type tells the Zig compiler the <code>main</code> |
