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

This commit is contained in:
bsubei 2024-07-21 16:01:20 -04:00 committed by Alex Rønne Petersen
parent 9c45fb4b09
commit 3f245616a5

View file

@ -379,9 +379,9 @@
<p> <p>
In this case, the {#syntax#}!{#endsyntax#} may be omitted from the return 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> </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_close#}
{#header_open|Comments#} {#header_open|Comments#}
<p> <p>
@ -2295,7 +2295,7 @@ or
{#header_open|Tuples#} {#header_open|Tuples#}
<p> <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>
<p> <p>
The fields are implicitly named using numbers starting from 0. Because their names are integers, The fields are implicitly named using numbers starting from 0. Because their names are integers,