From 5afa7f2545a5f350bbac4c9d9349a7fbbd8f0977 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 11 Jul 2020 09:09:07 +0700 Subject: [PATCH] Update doc/langref.html.in Co-authored-by: Joachim Schmidt --- doc/langref.html.in | 4 ++-- 1 file 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 {

In the hello.zig code sample, the main 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 might 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 might 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#} might occur. The {#syntax#}void{#endsyntax#} return type tells the Zig compiler the main