X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_ast%2Fsrc%2Futil%2Fparser.rs;h=4f7099c7be8a6561492a22b210643768b9db4a2a;hb=3d79cbc3c1cf6fadeff32c30a8e20d456cd625fe;hp=819f1884a06922ca5861679de032dde2b2db47a7;hpb=bdb07a8ec8e77aa10fb84fae1d4ff71c21180bb4;p=rust.git diff --git a/compiler/rustc_ast/src/util/parser.rs b/compiler/rustc_ast/src/util/parser.rs index 819f1884a06..4f7099c7be8 100644 --- a/compiler/rustc_ast/src/util/parser.rs +++ b/compiler/rustc_ast/src/util/parser.rs @@ -304,7 +304,7 @@ pub fn order(self) -> i8 { | ExprPrecedence::Yeet => PREC_JUMP, // `Range` claims to have higher precedence than `Assign`, but `x .. x = x` fails to - // parse, instead of parsing as `(x .. x) = x`. Giving `Range` a lower precedence + // parse, instead of parsing as `(x .. x) = x`. Giving `Range` a lower precedence // ensures that `pprust` will add parentheses in the right places to get the desired // parse. ExprPrecedence::Range => PREC_RANGE,