Skip to content

Commit

Permalink
Book - short explanation of arity
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Carvalho committed Feb 15, 2015
1 parent 29ff00c commit 89822e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc/trpl/compound-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ This pattern is very powerful, and we'll see it repeated more later.

There are also a few things you can do with a tuple as a whole, without
destructuring. You can assign one tuple into another, if they have the same
arity and contained types.
contained types and arity. Tuples have the same arity when they have the same
length.

```rust
let mut x = (1, 2); // x: (i32, i32)
Expand Down

0 comments on commit 89822e1

Please sign in to comment.