diff --git a/src/lexer.rs b/src/lexer.rs index 9034f47..e35b858 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -18,7 +18,7 @@ pub fn lex(input: &str, allow_trailing_operators: bool, default_degree: Unit) -> if allow_trailing_operators { match &input.chars().last().unwrap_or('x') { - '+' | '-' | '*' | '/' | '%' | '^' | '(' => { + '+' | '-' | '*' | '/' | '^' | '(' => { input.pop(); }, _ => {},