Skip to content

Commit

Permalink
Update compound-types.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz authored Sep 18, 2024
1 parent ed6f809 commit 9e559ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training-slides/src/compound-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fn check_shape(shape: Shape) {
## Doing a `match` on an `enum`

- There are two variables called `radius`
- The binding of `radius` in the pattern body hides the `radius` variable on line 7
- The binding of `radius` in the pattern body on line 9 hides the `radius` variable on line 7

```rust [7|9]
enum Shape {
Expand Down

0 comments on commit 9e559ee

Please sign in to comment.