diff options
| author | Aaron Kutch <aaronkutch@att.net> | 2019-06-14 12:24:38 -0500 |
|---|---|---|
| committer | Aaron Kutch <aaronkutch@att.net> | 2019-06-14 12:24:38 -0500 |
| commit | 363940bbe1fd2d1243bf4726756680459601a3b8 (patch) | |
| tree | ab781f1bc4d470fe3b57d9a2886a44e1252ff558 /src/libsyntax | |
| parent | fc550d4295a654f9e7c621d957d81fbf1426c70b (diff) | |
| download | rust-363940bbe1fd2d1243bf4726756680459601a3b8.tar.gz rust-363940bbe1fd2d1243bf4726756680459601a3b8.zip | |
Change `...` to `..=` where applicable
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/util/parser.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 68cb8c8574d..54cd4035a7b 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1181,7 +1181,7 @@ pub enum ExprKind { Field(P<Expr>, Ident), /// An indexing operation (e.g., `foo[2]`). Index(P<Expr>, P<Expr>), - /// A range (e.g., `1..2`, `1..`, `..2`, `1...2`, `1...`, `...2`). + /// A range (e.g., `1..2`, `1..`, `..2`, `1..=2`, `..=2`). Range(Option<P<Expr>>, Option<P<Expr>>, RangeLimits), /// Variable reference, possibly containing `::` and/or type diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs index 69dd96625cc..fcecee8c57f 100644 --- a/src/libsyntax/util/parser.rs +++ b/src/libsyntax/util/parser.rs @@ -234,7 +234,7 @@ pub const PREC_RESET: i8 = -100; pub const PREC_CLOSURE: i8 = -40; pub const PREC_JUMP: i8 = -30; pub const PREC_RANGE: i8 = -10; -// The range 2 ... 14 is reserved for AssocOp binary operator precedences. +// The range 2..=14 is reserved for AssocOp binary operator precedences. pub const PREC_PREFIX: i8 = 50; pub const PREC_POSTFIX: i8 = 60; pub const PREC_PAREN: i8 = 99; |
