Don't print newline for empty REPL result
This commit is contained in:
parent
b080ea7c81
commit
eb5ce2ef9e
@ -91,7 +91,9 @@ fn repl() {
|
||||
}
|
||||
|
||||
let (eval, new_env) = evaluate(ast, env);
|
||||
println!("{}", eval);
|
||||
if !eval.is_empty() {
|
||||
println!("{}", eval);
|
||||
}
|
||||
env = new_env;
|
||||
},
|
||||
Err(err) => println!("Error: {}", err)
|
||||
|
Loading…
Reference in New Issue
Block a user