Commit 188d553
committed
Align pattern destructuring with rest of doc
Previously, `patterns.destructure.placeholder` referred to the `_` in a
destructuring pattern as "placeholder" and `..` as "wildcard". This
directly contradicted the definition of struct patterns and tuple
(struct) patterns, which (indirectly) define `_` as a wildcard pattern
and `..` as a structure pattern et cetera (for structs, enums, and union
values) or rest pattern (for tuples, tuple structs, slices, and arrays).
Update the paragraph to use "wildcard pattern", "et cetera", and "rest
pattern" instead. Moreover, add links to their respective
sections/statements.
Don't update the reference `r[patterns.destructure.placeholder]`, as
changes might break (third-party) links to the updated paragraph.1 parent a24e6e9 commit 188d553
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments