mirror of https://github.com/rust-lang/reference
Merge pull request #1428 from riking/patch-1
Reference wildcard patterns from underscore expr
This commit is contained in:
commit
6a66f10957
|
@ -8,6 +8,8 @@ Underscore expressions, denoted with the symbol `_`, are used to signify a
|
|||
placeholder in a destructuring assignment. They may only appear in the left-hand
|
||||
side of an assignment.
|
||||
|
||||
Note that this is distinct from the [wildcard pattern](../patterns.md#wildcard-pattern).
|
||||
|
||||
An example of an `_` expression:
|
||||
|
||||
```rust
|
||||
|
|
Loading…
Reference in New Issue