瀏覽代碼

Minor improvement in comments

David Peter 1 年之前
父節點
當前提交
ba76e16dc0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      numbat/src/parser.rs

+ 2 - 2
numbat/src/parser.rs

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