Skip to content

Commit

Permalink
fix inconsistent spacing in example
Browse files Browse the repository at this point in the history
  • Loading branch information
meadowsys committed Nov 27, 2024
1 parent 5c86c73 commit eeb2960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ To make it valid, write the following:
# age: u8,
# }
# let value = Person { name: String::from("John"), age: 23 };
if let Person {name: ref person_name, age: 18..=150 } = value { }
if let Person { name: ref person_name, age: 18..=150 } = value { }
```

Thus, `ref` is not something that is being matched against.
Expand Down

0 comments on commit eeb2960

Please sign in to comment.