Merge pull request #4186 from andersk/arithmetic

Spell “arithmetic” correctly
This commit is contained in:
fanninpm 2022-09-30 09:29:36 -04:00 committed by GitHub
commit e64d7d196d

View file

@ -816,12 +816,12 @@ AndExpression: ast::Expr = {
}; };
ShiftExpression: ast::Expr = { ShiftExpression: ast::Expr = {
<e1:ShiftExpression> <location:@L> <op:ShiftOp> <e2:ArithmaticExpression> => ast::Expr { <e1:ShiftExpression> <location:@L> <op:ShiftOp> <e2:ArithmeticExpression> => ast::Expr {
location, location,
custom: (), custom: (),
node: ast::ExprKind::BinOp { left: Box::new(e1), op, right: Box::new(e2) } node: ast::ExprKind::BinOp { left: Box::new(e1), op, right: Box::new(e2) }
}, },
ArithmaticExpression, ArithmeticExpression,
}; };
ShiftOp: ast::Operator = { ShiftOp: ast::Operator = {
@ -829,8 +829,8 @@ ShiftOp: ast::Operator = {
">>" => ast::Operator::RShift, ">>" => ast::Operator::RShift,
}; };
ArithmaticExpression: ast::Expr = { ArithmeticExpression: ast::Expr = {
<a:ArithmaticExpression> <location:@L> <op:AddOp> <b:Term> => ast::Expr { <a:ArithmeticExpression> <location:@L> <op:AddOp> <b:Term> => ast::Expr {
location, location,
custom: (), custom: (),
node: ast::ExprKind::BinOp { left: Box::new(a), op, right: Box::new(b) } node: ast::ExprKind::BinOp { left: Box::new(a), op, right: Box::new(b) }