Skip to content

Commit 681725a

Browse files
committed
Fix typo
1 parent 237ac4e commit 681725a

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

crates/deno_task_shell/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ fn parse_pre_arithmetic_op(pair: Pair<Rule>) -> Result<PreArithmeticOp> {
15121512
let first = pair
15131513
.into_inner()
15141514
.next()
1515-
.ok_or_else(|| miette!("Expected increament or decreament operator"))?;
1515+
.ok_or_else(|| miette!("Expected increment or decreament operator"))?;
15161516
match first.as_rule() {
15171517
Rule::increment => Ok(PreArithmeticOp::Increment),
15181518
Rule::decrement => Ok(PreArithmeticOp::Decrement),
@@ -1531,7 +1531,7 @@ fn parse_post_arithmetic_op(pair: Pair<Rule>) -> Result<PostArithmeticOp> {
15311531
let first = pair
15321532
.into_inner()
15331533
.next()
1534-
.ok_or_else(|| miette!("Expected increament or decreament operator"))?;
1534+
.ok_or_else(|| miette!("Expected increment or decreament operator"))?;
15351535
match first.as_rule() {
15361536
Rule::increment => Ok(PostArithmeticOp::Increment),
15371537
Rule::decrement => Ok(PostArithmeticOp::Decrement),

crates/deno_task_shell/src/shell/execute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ fn apply_pre_op(
740740
) -> Result<ArithmeticResult, Error> {
741741
match op {
742742
PreArithmeticOp::Increment => {
743-
let result = val.pre_increament(operand)?;
743+
let result = val.pre_increment(operand)?;
744744
let result_clone = result.clone();
745745
state.apply_changes(&result_clone.changes);
746746
Ok(result)
@@ -765,7 +765,7 @@ fn apply_post_op(
765765
) -> Result<ArithmeticResult, Error> {
766766
match op {
767767
PostArithmeticOp::Increment => {
768-
let result = val.post_increament(operand)?;
768+
let result = val.post_increment(operand)?;
769769
let result_clone = result.clone();
770770
state.apply_changes(&result_clone.changes);
771771
Ok(result)

crates/deno_task_shell/src/shell/types.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ impl ArithmeticResult {
575575
}
576576
}
577577

578-
pub fn pre_increament(
578+
pub fn pre_increment(
579579
&self,
580580
operand: &ArithmeticPart,
581581
) -> Result<ArithmeticResult, Error> {
@@ -593,7 +593,7 @@ impl ArithmeticResult {
593593
})
594594
}
595595
_ => Err(anyhow::anyhow!(
596-
"Invalid arithmetic result type for pre-increament: {}",
596+
"Invalid arithmetic result type for pre-increment: {}",
597597
self
598598
)),
599599
},
@@ -610,7 +610,7 @@ impl ArithmeticResult {
610610
})
611611
}
612612
_ => Err(anyhow::anyhow!(
613-
"Invalid arithmetic result type for pre-increament: {}",
613+
"Invalid arithmetic result type for pre-increment: {}",
614614
self
615615
)),
616616
},
@@ -635,7 +635,7 @@ impl ArithmeticResult {
635635
})
636636
}
637637
_ => Err(anyhow::anyhow!(
638-
"Invalid arithmetic result type for pre-increament: {}",
638+
"Invalid arithmetic result type for pre-increment: {}",
639639
self
640640
)),
641641
},
@@ -652,14 +652,14 @@ impl ArithmeticResult {
652652
})
653653
}
654654
_ => Err(anyhow::anyhow!(
655-
"Invalid arithmetic result type for pre-increament: {}",
655+
"Invalid arithmetic result type for pre-increment: {}",
656656
self
657657
)),
658658
},
659659
}
660660
}
661661

662-
pub fn post_increament(
662+
pub fn post_increment(
663663
&self,
664664
operand: &ArithmeticPart,
665665
) -> Result<ArithmeticResult, Error> {
@@ -677,7 +677,7 @@ impl ArithmeticResult {
677677
})
678678
}
679679
_ => Err(anyhow::anyhow!(
680-
"Invalid arithmetic result type for pre-increament: {}",
680+
"Invalid arithmetic result type for pre-increment: {}",
681681
self
682682
)),
683683
},
@@ -694,7 +694,7 @@ impl ArithmeticResult {
694694
})
695695
}
696696
_ => Err(anyhow::anyhow!(
697-
"Invalid arithmetic result type for pre-increament: {}",
697+
"Invalid arithmetic result type for pre-increment: {}",
698698
self
699699
)),
700700
},
@@ -719,7 +719,7 @@ impl ArithmeticResult {
719719
})
720720
}
721721
_ => Err(anyhow::anyhow!(
722-
"Invalid arithmetic result type for pre-increament: {}",
722+
"Invalid arithmetic result type for pre-increment: {}",
723723
self
724724
)),
725725
},
@@ -736,7 +736,7 @@ impl ArithmeticResult {
736736
})
737737
}
738738
_ => Err(anyhow::anyhow!(
739-
"Invalid arithmetic result type for pre-increament: {}",
739+
"Invalid arithmetic result type for pre-increment: {}",
740740
self
741741
)),
742742
},

0 commit comments

Comments
 (0)