Skip to content

Commit

Permalink
Merge pull request #1428 from riking/patch-1
Browse files Browse the repository at this point in the history
Reference wildcard patterns from underscore expr
  • Loading branch information
ehuss authored Nov 21, 2023
2 parents cd8193e + 7f1e24a commit 6a66f10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/expressions/underscore-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a66f10

Please sign in to comment.