mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-24 16:10:25 +08:00
commit
224a3eac55
@ -175,6 +175,7 @@ match name {
|
|||||||
|
|
||||||
// name is not moved here; the match only took a reference to its data rather
|
// name is not moved here; the match only took a reference to its data rather
|
||||||
// than moving it
|
// than moving it
|
||||||
|
println!("name is: {:?}", name);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Destructuring
|
## Destructuring
|
||||||
|
Loading…
Reference in New Issue
Block a user