Skip to content

Commit b08d6f6

Browse files
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 b6e8473 commit b08d6f6

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)