@@ -30,7 +30,7 @@ fn num_f64(n: &NumberValue) -> Result<f64, Signal> {
3030pub ( crate ) const FUNCTIONS : & [ FunctionRegistration ] = & [
3131 FunctionRegistration :: eager ( "std::number::add" , add, 2 ) ,
3232 FunctionRegistration :: eager ( "std::number::multiply" , multiply, 2 ) ,
33- FunctionRegistration :: eager ( "std::number::substract " , substract , 2 ) ,
33+ FunctionRegistration :: eager ( "std::number::subtract " , subtract , 2 ) ,
3434 FunctionRegistration :: eager ( "std::number::divide" , divide, 2 ) ,
3535 FunctionRegistration :: eager ( "std::number::modulo" , modulo, 2 ) ,
3636 FunctionRegistration :: eager ( "std::number::abs" , abs, 1 ) ,
@@ -153,7 +153,7 @@ fn multiply(
153153 Signal :: Success ( value_from_f64 ( lhs * rhs) )
154154}
155155
156- fn substract (
156+ fn subtract (
157157 args : & [ Argument ] ,
158158 _ctx : & mut ValueStore ,
159159 _run : & mut dyn FnMut ( i64 , & mut ValueStore ) -> Signal ,
@@ -922,12 +922,12 @@ mod tests {
922922 }
923923
924924 #[ test]
925- fn test_substract_and_divide ( ) {
925+ fn test_subtract_and_divide ( ) {
926926 let mut ctx = ValueStore :: default ( ) ;
927927
928928 let mut run = dummy_run;
929929 assert_eq ! (
930- expect_num( substract ( & [ a_num( 10.0 ) , a_num( 4.0 ) ] , & mut ctx, & mut run) ) ,
930+ expect_num( subtract ( & [ a_num( 10.0 ) , a_num( 4.0 ) ] , & mut ctx, & mut run) ) ,
931931 6.0
932932 ) ;
933933
0 commit comments