Skip to content

Commit 6c8431f

Browse files
committed
Address review comments on Range Pattern commit.
1 parent a87587e commit 6c8431f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/patterns.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ match tuple {
388388
>       _RangePatternBound_ `..=` _RangePatternBound_
389389
>
390390
> _HalfOpenRangePattern_ :\
391-
>    | _RangePatternBound_ `..`
391+
>       _RangePatternBound_ `..`
392392
>    | `..=` _RangePatternBound_
393393
>
394394
> _ObsoleteRangePattern_ :\
@@ -425,7 +425,6 @@ They have the same type as their upper or lower bound.
425425
A half open range with only a lower bound is written as its lower bound followed by `..`.
426426
These range patterns will match on any value greater than or equal to the lower bound.
427427
For example, `1..` will match 1, 9, or 9001, or 9007199254740991 (if it is of an appropriate size), but not 0, and not negative numbers for signed integers.
428-
For an integer the pattern `1..` will match 9, or 9001, or 9007199254740991 (if it is of an appropriate size), but not 0, and not negative numbers for signed integers.
429428
The bounds can be literals or paths that point to constant values.
430429

431430
A half open range with only an upper bound is written as `..=` followed by its upper bound.

0 commit comments

Comments
 (0)