mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
commit
fe3b6a1662
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user