aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-11-06 15:12:58 +0000
committerAkshay <[email protected]>2020-11-06 15:12:58 +0000
commitcf7005dc1550119a1b0b5f713d2f31cc8b7da065 (patch)
treedb570b5abe22ab704fe65ba851a2d97c168e6ee3 /src/main.rs
parent8ff40835ccb622c076e889ed48e5cef6480977a1 (diff)
parent72789dff9c52cf2c5ef7772b301a1d5cfd90e272 (diff)
Merge branch 'master' into pickfire-help
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
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
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 if input == "help" { 196 if input == "help" {
197 return Err(CalcError::Help); 197 return Err(CalcError::Help);
198 } 198 }