Skip to content

Commit

Permalink
Update tutorial: 1-tuples now exist
Browse files Browse the repository at this point in the history
  • Loading branch information
zofrex committed Apr 7, 2013
1 parent 44d4d6d commit 621d45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial.md
Expand Up @@ -747,7 +747,7 @@ fn area(sh: Shape) -> float {

Tuples in Rust behave exactly like structs, except that their fields
do not have names. Thus, you cannot access their fields with dot notation.
Tuples can have any arity except for 0 or 1 (though you may consider
Tuples can have any arity except for 0 (though you may consider
unit, `()`, as the empty tuple if you like).

~~~~
Expand Down

0 comments on commit 621d45b

Please sign in to comment.