Update item-patterns-and-struct-else.md

This commit is contained in:
nora 2023-03-17 17:23:26 +01:00 committed by GitHub
parent 47f40f231a
commit cb46b7fb71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,7 @@ struct Household { parent: Ferris, child: Corro } = Household {
Now we can nicely match on the `Household` struct containing the definition of the `Ferris` and `Corro` structs. This is equivalent to the following code: Now we can nicely match on the `Household` struct containing the definition of the `Ferris` and `Corro` structs. This is equivalent to the following code:
```rust ```rust
struct Feris { struct Ferris {
name: String, name: String,
} }