diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7086d15..94f4cbc 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -192,7 +192,7 @@ fn parse_arguments() -> Configuration { | |||
192 | } | 192 | } |
193 | 193 | ||
194 | pub fn eval_math_expression(input: &str, prev_ans: Option<f64>) -> Result<f64, CalcError> { | 194 | pub fn eval_math_expression(input: &str, prev_ans: Option<f64>) -> Result<f64, CalcError> { |
195 | let input = input.trim(); | 195 | let input = input.trim().replace(" ", ""); |
196 | if input == "help" { | 196 | if input == "help" { |
197 | return Err(CalcError::Help); | 197 | return Err(CalcError::Help); |
198 | } | 198 | } |