@@ -427,7 +427,7 @@ pub enum ArithmeticPart {
427427 right : Box < ArithmeticPart > ,
428428 } ,
429429 #[ error( "Invalid unary arithmetic expression" ) ]
430- UnaryAritheticExpr {
430+ UnaryArithmeticExpr {
431431 operator : UnaryArithmeticOp ,
432432 operand : Box < ArithmeticPart > ,
433433 } ,
@@ -1463,14 +1463,14 @@ fn unary_pre_arithmetic_expr(pair: Pair<Rule>) -> Result<ArithmeticPart> {
14631463 match first. as_rule ( ) {
14641464 Rule :: pre_arithmetic_op => {
14651465 let op = parse_pre_arithmetic_op ( first) ?;
1466- Ok ( ArithmeticPart :: UnaryAritheticExpr {
1466+ Ok ( ArithmeticPart :: UnaryArithmeticExpr {
14671467 operator : UnaryArithmeticOp :: Pre ( op) ,
14681468 operand : Box :: new ( operand) ,
14691469 } )
14701470 }
14711471 Rule :: post_arithmetic_op => {
14721472 let op = parse_pre_arithmetic_op ( first) ?;
1473- Ok ( ArithmeticPart :: UnaryAritheticExpr {
1473+ Ok ( ArithmeticPart :: UnaryArithmeticExpr {
14741474 operator : UnaryArithmeticOp :: Pre ( op) ,
14751475 operand : Box :: new ( operand) ,
14761476 } )
@@ -1505,7 +1505,7 @@ fn unary_post_arithmetic_expr(pair: Pair<Rule>) -> Result<ArithmeticPart> {
15051505 ) ) ,
15061506 } ?;
15071507 let op = parse_post_arithmetic_op ( second) ?;
1508- Ok ( ArithmeticPart :: UnaryAritheticExpr {
1508+ Ok ( ArithmeticPart :: UnaryArithmeticExpr {
15091509 operator : UnaryArithmeticOp :: Post ( op) ,
15101510 operand : Box :: new ( operand) ,
15111511 } )
0 commit comments