aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index bc22ce2..5540da9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -192,8 +192,7 @@ fn parse_arguments() -> Configuration {
192} 192}
193 193
194pub fn eval_math_expression(input: &str, prev_ans: Option<f64>) -> Result<f64, CalcError> { 194pub 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 let input = input.replace(" ", "");
197 if input.is_empty() { 196 if input.is_empty() {
198 return Ok(0.); 197 return Ok(0.);
199 } 198 }