mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 04:34:51 +00:00
Update manual for single-element tuples
This commit is contained in:
parent
621d45b341
commit
d1e2d295f8
@ -1653,11 +1653,12 @@ Path expressions are [lvalues](#lvalues-rvalues-and-temporaries).
|
|||||||
|
|
||||||
### Tuple expressions
|
### Tuple expressions
|
||||||
|
|
||||||
Tuples are written by enclosing two or more comma-separated
|
Tuples are written by enclosing one or more comma-separated
|
||||||
expressions in parentheses. They are used to create [tuple-typed](#tuple-types)
|
expressions in parentheses. They are used to create [tuple-typed](#tuple-types)
|
||||||
values.
|
values.
|
||||||
|
|
||||||
~~~~~~~~ {.tuple}
|
~~~~~~~~ {.tuple}
|
||||||
|
(0,);
|
||||||
(0f, 4.5f);
|
(0f, 4.5f);
|
||||||
("a", 4u, true);
|
("a", 4u, true);
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
|
Loading…
Reference in New Issue
Block a user