From c09d6c28542e6b43d5b50f862f710f7d8d774ec8 Mon Sep 17 00:00:00 2001 From: Valerie Date: Fri, 12 Jul 2024 19:22:37 -0400 Subject: [PATCH] fixed bad helper thing by un-fixing the thing i fixed before and i don't understand what changed --- src/helper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helper.rs b/src/helper.rs index 221147a..02c57de 100644 --- a/src/helper.rs +++ b/src/helper.rs @@ -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);