diff --git a/src/macros-by-example.md b/src/macros-by-example.md index ae1ca4ef2..773223ad8 100644 --- a/src/macros-by-example.md +++ b/src/macros-by-example.md @@ -140,11 +140,10 @@ the syntax element that matched them. The keyword metavariable `$crate` can be used to refer to the current crate; see [Hygiene] below. Metavariables can be transcribed more than once or not at all. -For reasons of backwards compatibility, although `_` is a (keyword) identifier, -it is not matched by the `ident` fragment specifier. Similarly, though `_` [is -also an expression][_UnderscoreExpression_], a standalone underscore is not -matched by the `expr` fragment specifier. However, `_` is matched by the `expr` -fragment specifier when it appears as a subexpression. +For reasons of backwards compatibility, though `_` [is also an +expression][_UnderscoreExpression_], a standalone underscore is not matched by +the `expr` fragment specifier. However, `_` is matched by the `expr` fragment +specifier when it appears as a subexpression. ## Repetitions diff --git a/src/tokens.md b/src/tokens.md index 1c14a1819..3a8ffc374 100644 --- a/src/tokens.md +++ b/src/tokens.md @@ -583,7 +583,7 @@ usages and meanings are defined in the linked pages. | `>=` | Ge | [Greater than or equal to][comparison], [Generics] | `<=` | Le | [Less than or equal to][comparison] | `@` | At | [Subpattern binding] -| `_` | Underscore | [Wildcard patterns], [Inferred types], Unnamed items in [constants], [extern crates], and [use declarations] +| `_` | Underscore | [Wildcard patterns], [Inferred types], Unnamed items in [constants], [extern crates], [use declarations], and [destructuring assignment] | `.` | Dot | [Field access][field], [Tuple index] | `..` | DotDot | [Range][range], [Struct expressions], [Patterns], [Range Patterns][rangepat] | `...` | DotDotDot | [Variadic functions][extern], [Range patterns] @@ -626,6 +626,7 @@ them are referred to as "token trees" in [macros]. The three types of brackets [compound]: expressions/operator-expr.md#compound-assignment-expressions [constants]: items/constant-items.md [dereference]: expressions/operator-expr.md#the-dereference-operator +[destructuring assignment]: expressions/underscore-expr.md [extern crates]: items/extern-crates.md [extern]: items/external-blocks.md [field]: expressions/field-expr.md