fixed bad helper thing by un-fixing the thing i fixed before and i don't understand what changed
This commit is contained in:
parent
d144bd9245
commit
c09d6c2854
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ pub fn fix(arg: &Value) -> EvalResult {
|
|||
|
||||
let count = args.len();
|
||||
if count != 2 {
|
||||
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2..=2, actual: count });
|
||||
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2, actual: count });
|
||||
}
|
||||
|
||||
let float = args[0].as_float()?;
|
||||
|
@ -63,7 +63,7 @@ pub fn logarithm(arg: &Value) -> EvalResult {
|
|||
output = value.log(base).into();
|
||||
},
|
||||
_ => {
|
||||
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2..=2, actual: count });
|
||||
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2, actual: count });
|
||||
}
|
||||
}
|
||||
return Ok(output);
|
||||
|
|
Loading…
Reference in a new issue