mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-31 14:47:34 +02:00
Speaker notes for destructuring-structs.md (#265)
* Update destructuring-structs.md * Update destructuring-structs.md
This commit is contained in:
parent
f90fecb449
commit
1835896e58
@ -5,3 +5,8 @@ You can also destructure `structs`:
|
||||
```rust,editable
|
||||
{{#include ../../third_party/rust-by-example/destructuring-structs.rs}}
|
||||
```
|
||||
<details>
|
||||
|
||||
* Change the literal values in `foo` to match with the other patterns.
|
||||
* Add a new field to `Foo` and make changes to the pattern as needed.
|
||||
</details>
|
||||
|
Loading…
x
Reference in New Issue
Block a user