mirror of https://github.com/rust-lang/reference
Typo: 'a' to 'an' in destructors.md
This commit is contained in:
parent
5ca365eac6
commit
193aa55275
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue