Skip to content

Commit 8332955

Browse files
authored
Reference wildcard patterns from underscore expr
These appear in nearly identical locations in source code and have subtly different semantics, so cross link them.
1 parent cd8193e commit 8332955

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/expressions/underscore-expr.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Underscore expressions, denoted with the symbol `_`, are used to signify a
88
placeholder in a destructuring assignment. They may only appear in the left-hand
99
side of an assignment.
1010

11+
Note that this is distinct from the [wildcard pattern](../patterns.html#wildcard-pattern).
12+
1113
An example of an `_` expression:
1214

1315
```rust

0 commit comments

Comments
 (0)