Skip to content

Commit 9b91e9b

Browse files
committed
Address comments
1 parent 21239a9 commit 9b91e9b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/macros-by-example.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,10 @@ the syntax element that matched them. The keyword metavariable `$crate` can be
140140
used to refer to the current crate; see [Hygiene] below. Metavariables can be
141141
transcribed more than once or not at all.
142142

143-
For reasons of backwards compatibility, although `_` is a (keyword) identifier,
144-
it is not matched by the `ident` fragment specifier. Similarly, though `_` [is
145-
also an expression][_UnderscoreExpression_], a standalone underscore is not
146-
matched by the `expr` fragment specifier. However, `_` is matched by the `expr`
147-
fragment specifier when it appears as a subexpression.
143+
For reasons of backwards compatibility, though `_` [is also an
144+
expression][_UnderscoreExpression_], a standalone underscore is not matched by
145+
the `expr` fragment specifier. However, `_` is matched by the `expr` fragment
146+
specifier when it appears as a subexpression.
148147

149148
> **Edition Differences**: Starting with the 2021 edition, `pat` fragment-specifiers match top-level or-patterns (that is, they accept [_Pattern_]).
150149
>

src/tokens.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ usages and meanings are defined in the linked pages.
582582
| `>=` | Ge | [Greater than or equal to][comparison], [Generics]
583583
| `<=` | Le | [Less than or equal to][comparison]
584584
| `@` | At | [Subpattern binding]
585-
| `_` | Underscore | [Wildcard patterns], [Inferred types], Unnamed items in [constants], [extern crates], and [use declarations]
585+
| `_` | Underscore | [Wildcard patterns], [Inferred types], Unnamed items in [constants], [extern crates], [use declarations], and [destructuring assignment]
586586
| `.` | Dot | [Field access][field], [Tuple index]
587587
| `..` | DotDot | [Range][range], [Struct expressions], [Patterns], [Range Patterns][rangepat]
588588
| `...` | DotDotDot | [Variadic functions][extern], [Range patterns]
@@ -625,6 +625,7 @@ them are referred to as "token trees" in [macros]. The three types of brackets
625625
[compound]: expressions/operator-expr.md#compound-assignment-expressions
626626
[constants]: items/constant-items.md
627627
[dereference]: expressions/operator-expr.md#the-dereference-operator
628+
[destructuring assignment]: expressions/underscore-expr.md
628629
[extern crates]: items/extern-crates.md
629630
[extern]: items/external-blocks.md
630631
[field]: expressions/field-expr.md

0 commit comments

Comments
 (0)