authorgravatar for manlio.perillo@gmail.comManlio Perillo <manlio.perillo@gmail.com> 2023-01-17 15:48:07+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-01-18 15:33:58+02:00
log72c09b7b3b2b804bcc57befb5d82c7e89b6deeac
tree87a6940b77b052615926e27ddea88b923d7516a7
parentc9f7b32fbd4ea99da7fdf435b83ce0e582f33c08

langref: use the term tuple in the Hello World section

In the Hello World section, replace the term "anonymous struct literal" with tuple, when documenting the second argument of stdout.print().

1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -488,7 +488,7 @@ pub fn main() !void {...@@ -488,7 +488,7 @@ pub fn main() !void {
488 purposely written to show how to perform {#link|string|String Literals and Unicode Code Point Literals#}488 purposely written to show how to perform {#link|string|String Literals and Unicode Code Point Literals#}
489 substitution in the {#syntax#}print{#endsyntax#} function. The curly-braces inside of the first argument489 substitution in the {#syntax#}print{#endsyntax#} function. The curly-braces inside of the first argument
490 are substituted with the compile-time known value inside of the second argument490 are substituted with the compile-time known value inside of the second argument
491 (known as an {#link|anonymous struct literal|Anonymous Struct Literals#}). The <code>\n</code>491 (known as an {#link|tuple|Tuples#}). The <code>\n</code>
492 inside of the double-quotes of the first argument is the {#link|escape sequence|Escape Sequences#} for the492 inside of the double-quotes of the first argument is the {#link|escape sequence|Escape Sequences#} for the
493 newline character. The {#link|try#} expression evaluates the result of {#syntax#}stdout.print{#endsyntax#}.493 newline character. The {#link|try#} expression evaluates the result of {#syntax#}stdout.print{#endsyntax#}.
494 If the result is an error, then the {#syntax#}try{#endsyntax#} expression will return from494 If the result is an error, then the {#syntax#}try{#endsyntax#} expression will return from