zig

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

commit 72c09b7b3b2b804bcc57befb5d82c7e89b6deeac (tree)
parent c9f7b32fbd4ea99da7fdf435b83ce0e582f33c08
Author: Manlio Perillo <manlio.perillo@gmail.com>
Date:   Tue, 17 Jan 2023 15:48:07 +0100

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().

Diffstat:
Mdoc/langref.html.in | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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