1
0
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:
Charisee Chiw 2023-02-06 23:42:57 -08:00 committed by GitHub
parent f90fecb449
commit 1835896e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>