Skip to content

Commit 73a063d

Browse files
committed
Fixed function names
1 parent 44d8f1e commit 73a063d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/deno_task_shell/src/parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
})

crates/deno_task_shell/src/shell/execute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ async fn evaluate_arithmetic_part(
618618
let rhs = Box::pin(evaluate_arithmetic_part(right, state)).await?;
619619
apply_conditional_binary_op(lhs, operator, rhs)
620620
}
621-
ArithmeticPart::UnaryAritheticExpr { operator, operand } => {
621+
ArithmeticPart::UnaryArithmeticExpr { operator, operand } => {
622622
let val = Box::pin(evaluate_arithmetic_part(operand, state)).await?;
623623
apply_unary_op(state, *operator, val, operand)
624624
}

0 commit comments

Comments
 (0)