Skip to content

Commit

Permalink
Merge pull request rust-lang#1371 from macaujack/patch-1
Browse files Browse the repository at this point in the history
Typo: 'a' to 'an' in destructors.md
  • Loading branch information
ehuss authored Jun 26, 2023
2 parents 5ca365e + 193aa55 commit 353e038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/destructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ An *extending pattern* is either
* An [identifier pattern] that binds by reference or mutable reference.
* A [struct][struct pattern], [tuple][tuple pattern], [tuple struct][tuple
struct pattern], or [slice][slice pattern] pattern where at least one of the
direct subpatterns is a extending pattern.
direct subpatterns is an extending pattern.

So `ref x`, `V(ref x)` and `[ref x, y]` are all extending patterns, but `x`,
`&ref x` and `&(ref x,)` are not.
Expand Down

0 comments on commit 353e038

Please sign in to comment.