Skip to content

Commit 4dee6eb

Browse files
authored
Merge pull request #1138 from pushkine/patch-2
(minor) Remove Expression Path sub-types splits in Pattern specs
2 parents 8474309 + 9884d5e commit 4dee6eb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/patterns.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ match tuple {
424424
>    | [BYTE_LITERAL]\
425425
> &nbsp;&nbsp; | `-`<sup>?</sup> [INTEGER_LITERAL]\
426426
> &nbsp;&nbsp; | `-`<sup>?</sup> [FLOAT_LITERAL]\
427-
> &nbsp;&nbsp; | [_PathInExpression_]\
428-
> &nbsp;&nbsp; | [_QualifiedPathInExpression_]
427+
> &nbsp;&nbsp; | [_PathPattern_]
429428
430429
Range patterns match values within the range defined by their bounds. A range pattern may be
431430
closed or half-open. A range pattern is closed if it has both a lower and an upper bound, and
@@ -766,8 +765,7 @@ A future version of Rust may give the non-parenthesized version an alternate mea
766765

767766
> **<sup>Syntax</sup>**\
768767
> _PathPattern_ :\
769-
> &nbsp;&nbsp; &nbsp;&nbsp; [_PathInExpression_]\
770-
> &nbsp;&nbsp; | [_QualifiedPathInExpression_]
768+
> &nbsp;&nbsp; &nbsp;&nbsp; [_PathExpression_]
771769
772770
_Path patterns_ are patterns that refer either to constant values or
773771
to structs or enum variants that have no fields.
@@ -851,6 +849,7 @@ result in a type mismatch between `x` in the different subpatterns.
851849
[_MacroInvocation_]: macros.md#macro-invocation
852850
[_ObsoleteRangePattern_]: #range-patterns
853851
[_PathInExpression_]: paths.md#paths-in-expressions
852+
[_PathExpression_]: expressions/path-expr.md
854853
[_PathPattern_]: #path-patterns
855854
[_Pattern_]: #patterns
856855
[_PatternWithoutRange_]: #patterns

0 commit comments

Comments
 (0)