From fb439f3cdfea0d68aa2240d436a873bc43648087 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 5 Mar 2015 13:15:12 -0600 Subject: Rust: apply improvements in stepA to other steps. --- rust/src/bin/step0_repl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/bin/step0_repl.rs') 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())))); } -- cgit v1.2.3