diff --git a/src/parsing.rs b/src/parsing.rs index bc37a14..7c52c61 100644 --- a/src/parsing.rs +++ b/src/parsing.rs @@ -120,7 +120,7 @@ pub fn test_func(function_string: &str) -> Option { .collect::>(); return match var_names_not_x.len() { - 1 => Some(format!("Error: invalid variables: {}", var_names_not_x[0])), + 1 => Some(format!("Error: invalid variable: {}", var_names_not_x[0])), _ => Some(format!("Error: invalid variables: {:?}", var_names_not_x)), }; }