Skip to content

Commit

Permalink
exit(0) -> return in REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
twolodzko committed Nov 1, 2023
1 parent 647e6f1 commit 92500fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() {
loop {
match read_sexpr(reader) {
Ok(ref sexpr) => eval_and_print(sexpr, env),
Err(ReadError::Interrupted) => std::process::exit(0),
Err(ReadError::Interrupted) => return,
Err(msg) => println!("Error: {}", msg),
}
}
Expand Down

0 comments on commit 92500fd

Please sign in to comment.