aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
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 5846a87..ddfa75b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -61,7 +61,7 @@ fn main() {
61 let readline = rl.readline("> "); 61 let readline = rl.readline("> ");
62 match readline { 62 match readline {
63 Ok(line) => { 63 Ok(line) => {
64 rl.add_history_entry(line.as_ref()); 64 rl.add_history_entry(line.as_str());
65 let evaled = eval_math_expression(&line[..]); 65 let evaled = eval_math_expression(&line[..]);
66 match evaled { 66 match evaled {
67 Ok(ans) => pprint(ans), 67 Ok(ans) => pprint(ans),