Skip to content

Commit

Permalink
Merge pull request rust-lang#1103 from rust-lang/steveklabnik-patch-1
Browse files Browse the repository at this point in the history
fix spelling
  • Loading branch information
carols10cents authored Jan 9, 2018
2 parents 83896fa + 36b24a3 commit 1adedab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion second-edition/src/ch18-03-pattern-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ matching.
#### Destructuring References

When the value we’re matching to our pattern contains a reference, we need to
destructure the reference from the value, which we can do can by specifying a
destructure the reference from the value, which we can do by specifying a
`&` in the pattern. This lets us get a variable holding the value that the
reference points to rather than getting a variable that holds the reference.

Expand Down

0 comments on commit 1adedab

Please sign in to comment.