Skip to content

Commit eeb2960

Browse files
committed
fix inconsistent spacing in example
1 parent 5c86c73 commit eeb2960

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)