Pārlūkot izejas kodu

Minor improvement in comments

David Peter 1 gadu atpakaļ
vecāks
revīzija
ba76e16dc0
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      numbat/src/parser.rs

+ 2 - 2
numbat/src/parser.rs

@@ -2356,7 +2356,7 @@ mod tests {
         #[rustfmt::skip]
         #[rustfmt::skip]
         parse_as_expression(
         parse_as_expression(
             &["true || false && true || false"],
             &["true || false && true || false"],
-            binop!( // the and binop has the maximum priority
+            binop!( // the 'and' operator has the highest priority
                 binop!(boolean!(true), LogicalOr, binop!(boolean!(false), LogicalAnd, boolean!(true))),
                 binop!(boolean!(true), LogicalOr, binop!(boolean!(false), LogicalAnd, boolean!(true))),
                 LogicalOr,
                 LogicalOr,
                 boolean!(false)
                 boolean!(false)
@@ -2366,7 +2366,7 @@ mod tests {
         #[rustfmt::skip]
         #[rustfmt::skip]
         parse_as_expression(
         parse_as_expression(
             &["!true && false"],
             &["!true && false"],
-            binop!( // The negation has precedence over the and
+            binop!( // The negation has precedence over the 'and'
                 logical_neg!(boolean!(true)),
                 logical_neg!(boolean!(true)),
                 LogicalAnd,
                 LogicalAnd,
                 boolean!(false)
                 boolean!(false)