Fix the term 'Modulus' to 'Modulo' (#335)

This commit is contained in:
Hoon Wee 2021-08-23 19:05:42 +09:00 committed by GitHub
parent 31549b9241
commit 5ce67177b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ pub enum BinaryOperator {
Minus,
Multiply,
Divide,
Modulus,
Modulo,
StringConcat,
Gt,
Lt,
@ -94,7 +94,7 @@ impl fmt::Display for BinaryOperator {
BinaryOperator::Minus => "-",
BinaryOperator::Multiply => "*",
BinaryOperator::Divide => "/",
BinaryOperator::Modulus => "%",
BinaryOperator::Modulo => "%",
BinaryOperator::StringConcat => "||",
BinaryOperator::Gt => ">",
BinaryOperator::Lt => "<",

View file

@ -855,7 +855,7 @@ impl<'a> Parser<'a> {
Token::Plus => Some(BinaryOperator::Plus),
Token::Minus => Some(BinaryOperator::Minus),
Token::Mult => Some(BinaryOperator::Multiply),
Token::Mod => Some(BinaryOperator::Modulus),
Token::Mod => Some(BinaryOperator::Modulo),
Token::StringConcat => Some(BinaryOperator::StringConcat),
Token::Pipe => Some(BinaryOperator::BitwiseOr),
Token::Caret => Some(BinaryOperator::BitwiseXor),