zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3f245616a511539797b77e9b4e7c0f0dacceda0b (tree)
parent 9c45fb4b0933970912966786a036cbf787e69ae6
Author: bsubei <6508762+bsubei@users.noreply.github.com>
Date:   Sun, 21 Jul 2024 16:01:20 -0400

link to Tuples section in Hello World docs, and give an example of an empty tuple

Diffstat:
Mdoc/langref.html.in | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/langref.html.in b/doc/langref.html.in @@ -379,9 +379,9 @@ <p> In this case, the {#syntax#}!{#endsyntax#} may be omitted from the return - type because no errors are returned from the function. + type of <code>main</code> because no errors are returned from the function. </p> - {#see_also|Values|@import|Errors|Root Source File|Source Encoding#} + {#see_also|Values|Tuples|@import|Errors|Root Source File|Source Encoding|try#} {#header_close#} {#header_open|Comments#} <p> @@ -2295,7 +2295,7 @@ or {#header_open|Tuples#} <p> - Anonymous structs can be created without specifying field names, and are referred to as "tuples". + Anonymous structs can be created without specifying field names, and are referred to as "tuples". An empty tuple looks like <code>.{}</code> and can be seen in one of the {#link|Hello World examples|Hello World#}. </p> <p> The fields are implicitly named using numbers starting from 0. Because their names are integers,