diff options
| author | Corey Richardson <corey@octayn.net> | 2013-12-06 12:12:11 -0500 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-12-10 09:43:36 -0500 |
| commit | d9eff8de8a8455875dea40a3630856c9326bd576 (patch) | |
| tree | f0a9f6c07bbd6c6e7b5a12dc9909832ca2520577 /doc/tutorial.md | |
| parent | 2750adb5d8eb37906a568b99755847c25fe5e59a (diff) | |
| download | rust-d9eff8de8a8455875dea40a3630856c9326bd576.tar.gz rust-d9eff8de8a8455875dea40a3630856c9326bd576.zip | |
Clarify arity
Diffstat (limited to 'doc/tutorial.md')
| -rw-r--r-- | doc/tutorial.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 7ddb63fd914..f10275cc351 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -753,9 +753,9 @@ fn area(sh: Shape) -> f64 { ## Tuples -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 (though you may consider +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 (number of elements) except for 0 (though you may consider unit, `()`, as the empty tuple if you like). ~~~~ |
