Skip to content

Commit

Permalink
Merge pull request #1686 from meadowsys/patchie
Browse files Browse the repository at this point in the history
fix inconsistent spacing in example
  • Loading branch information
ehuss authored Nov 27, 2024
2 parents 5c86c73 + eeb2960 commit c2874f2
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 c2874f2

Please sign in to comment.