diff options
| author | Joel Martin <github@martintribe.org> | 2015-03-05 13:15:12 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-03-05 13:15:12 -0600 |
| commit | fb439f3cdfea0d68aa2240d436a873bc43648087 (patch) | |
| tree | 0025159ebdbceb7dc48f93d545124545569e9f25 /rust/src/bin/step0_repl.rs | |
| parent | 35012ea4d59764ab3744f56b5fb5684e86e80422 (diff) | |
| download | mal-fb439f3cdfea0d68aa2240d436a873bc43648087.tar.gz mal-fb439f3cdfea0d68aa2240d436a873bc43648087.zip | |
Rust: apply improvements in stepA to other steps.
Diffstat (limited to 'rust/src/bin/step0_repl.rs')
| -rw-r--r-- | rust/src/bin/step0_repl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/bin/step0_repl.rs b/rust/src/bin/step0_repl.rs index 030c551..ba5f5fe 100644 --- a/rust/src/bin/step0_repl.rs +++ b/rust/src/bin/step0_repl.rs @@ -1,6 +1,6 @@ extern crate mal; -use mal::readline::mal_readline; +use mal::readline; // read fn read(str: String) -> String { @@ -19,7 +19,7 @@ fn print(exp: String) -> String { fn main() { loop { - let line = mal_readline("user> "); + let line = readline::mal_readline("user> "); match line { None => break, _ => () } println!("{}", print(eval(read(line.unwrap())))); } |
