Skip to content

Commit eab3da7

Browse files
committed
Address comments
1 parent 7db9f1f commit eab3da7

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
## Repetitions
150149

src/tokens.md

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

0 commit comments

Comments
 (0)