File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ r[patterns.range.syntax]
483
483
>   ;  ; | _ RangeFromPattern_ \
484
484
>   ;  ; | _ RangeToExclusivePattern_ \
485
485
>   ;  ; | _ RangeToInclusivePattern_ \
486
- >   ;  ; | _ ObsoleteRangePattern_
486
+ >   ;  ; | _ ObsoleteRangePattern_ [ ^ obsolete-range-edition ]
487
487
>
488
488
> _ RangeExclusivePattern_ :\
489
489
>   ;  ;   ;  ; _ RangePatternBound_ ` .. ` _ RangePatternBound_
@@ -509,6 +509,8 @@ r[patterns.range.syntax]
509
509
>   ;  ; | ` - ` <sup >?</sup > [ INTEGER_LITERAL] \
510
510
>   ;  ; | ` - ` <sup >?</sup > [ FLOAT_LITERAL] \
511
511
>   ;  ; | [ _ PathExpression_ ]
512
+ >
513
+ > [ ^ obsolete-range-edition ] : The _ ObsoleteRangePattern_ syntax has been removed in the 2021 edition.
512
514
513
515
r[ patterns.range.intro]
514
516
* Range patterns* match scalar values within the range defined by their bounds.
You can’t perform that action at this time.
0 commit comments