diff options
| author | Manlio Perillo <manlio.perillo@gmail.com> | 2023-01-17 15:48:07 +0100 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-01-18 15:33:58 +0200 |
| commit | 72c09b7b3b2b804bcc57befb5d82c7e89b6deeac (patch) | |
| tree | 87a6940b77b052615926e27ddea88b923d7516a7 /doc/langref.html.in | |
| parent | c9f7b32fbd4ea99da7fdf435b83ce0e582f33c08 (diff) | |
| download | zig-72c09b7b3b2b804bcc57befb5d82c7e89b6deeac.tar.gz zig-72c09b7b3b2b804bcc57befb5d82c7e89b6deeac.zip | |
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 (limited to 'doc/langref.html.in')
| -rw-r--r-- | doc/langref.html.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index e7d124ac3a..30dbbb604e 100644 --- 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 |
