Skip to content

Commit c2874f2

Browse files
authored
Merge pull request #1686 from meadowsys/patchie
fix inconsistent spacing in example
2 parents 5c86c73 + eeb2960 commit c2874f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ To make it valid, write the following:
231231
# age: u8,
232232
# }
233233
# let value = Person { name: String::from("John"), age: 23 };
234-
if let Person {name: ref person_name, age: 18..=150 } = value { }
234+
if let Person { name: ref person_name, age: 18..=150 } = value { }
235235
```
236236

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

0 commit comments

Comments
 (0)