Skip to content

Commit

Permalink
Update manual for single-element tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
zofrex committed Apr 7, 2013
1 parent 621d45b commit d1e2d29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/rust.md
Expand Up @@ -1653,11 +1653,12 @@ Path expressions are [lvalues](#lvalues-rvalues-and-temporaries).

### 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)
values.

~~~~~~~~ {.tuple}
(0,);
(0f, 4.5f);
("a", 4u, true);
~~~~~~~~
Expand Down

0 comments on commit d1e2d29

Please sign in to comment.