Skip to content

Commit fe3b6a1

Browse files
committed
Rollup merge of rust-lang#22368 - thiagooak:book-arity, r=steveklabnik
rust-lang#21568
2 parents f28d89f + 89822e1 commit fe3b6a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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)