Skip to content

Commit

Permalink
Merge pull request #1138 from pushkine/patch-2
Browse files Browse the repository at this point in the history
(minor) Remove Expression Path sub-types splits in Pattern specs
  • Loading branch information
ehuss authored Jan 18, 2022
2 parents 8474309 + 9884d5e commit 4dee6eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,7 @@ match tuple {
>    | [BYTE_LITERAL]\
> &nbsp;&nbsp; | `-`<sup>?</sup> [INTEGER_LITERAL]\
> &nbsp;&nbsp; | `-`<sup>?</sup> [FLOAT_LITERAL]\
> &nbsp;&nbsp; | [_PathInExpression_]\
> &nbsp;&nbsp; | [_QualifiedPathInExpression_]
> &nbsp;&nbsp; | [_PathPattern_]
Range patterns match values within the range defined by their bounds. A range pattern may be
closed or half-open. A range pattern is closed if it has both a lower and an upper bound, and
Expand Down Expand Up @@ -766,8 +765,7 @@ A future version of Rust may give the non-parenthesized version an alternate mea

> **<sup>Syntax</sup>**\
> _PathPattern_ :\
> &nbsp;&nbsp; &nbsp;&nbsp; [_PathInExpression_]\
> &nbsp;&nbsp; | [_QualifiedPathInExpression_]
> &nbsp;&nbsp; &nbsp;&nbsp; [_PathExpression_]
_Path patterns_ are patterns that refer either to constant values or
to structs or enum variants that have no fields.
Expand Down Expand Up @@ -851,6 +849,7 @@ result in a type mismatch between `x` in the different subpatterns.
[_MacroInvocation_]: macros.md#macro-invocation
[_ObsoleteRangePattern_]: #range-patterns
[_PathInExpression_]: paths.md#paths-in-expressions
[_PathExpression_]: expressions/path-expr.md
[_PathPattern_]: #path-patterns
[_Pattern_]: #patterns
[_PatternWithoutRange_]: #patterns
Expand Down

0 comments on commit 4dee6eb

Please sign in to comment.