Skip to content

Commit 43c4bac

Browse files
committed
Move the definition of bounds to the intro
These are not specific rules, just foundational terminology definitions.
1 parent 5ac1ad0 commit 43c4bac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/patterns.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,9 @@ r[patterns.range.intro]
516516
*Range patterns* match scalar values within the range defined by their bounds.
517517
They comprise a *sigil* (`..` or `..=`) and a bound on one or both sides.
518518

519-
r[patterns.range.lower-bound]
520-
A bound on the left of the sigil is a *lower bound*.
519+
A bound on the left of the sigil is called a *lower bound*.
520+
A bound on the right is called an *upper bound*.
521521

522-
r[patterns.range.upper-bound]
523-
A bound on the right is an *upper bound*.
524522

525523
r[patterns.range.closed]
526524
A range pattern with both a lower and upper bound will match all values between and including both of its bounds.

0 commit comments

Comments
 (0)