Skip to content

Commit 89822e1

Browse files
author
Thiago Carvalho
committed
Book - short explanation of arity
1 parent 29ff00c commit 89822e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/trpl/compound-data-types.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ This pattern is very powerful, and we'll see it repeated more later.
4747

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

5253
```rust
5354
let mut x = (1, 2); // x: (i32, i32)

0 commit comments

Comments
 (0)