Skip to content

Commit

Permalink
Fix the printing problem of REPL version information
Browse files Browse the repository at this point in the history
  • Loading branch information
muqiuhan committed Jul 30, 2022
1 parent 66142ea commit c7d5b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ let () =
let stm = make_filestream (open_in stdlib_path) in
slurp stm basis
in
print_endline "MLisp 0.0.1";
let input_channel = get_input_channel () in
if input_channel = stdin then print_endline "MLisp v0.0.1";
try repl (make_filestream input_channel) stdlib with
| _ ->
if input_channel <> stdin then
Expand Down

0 comments on commit c7d5b42

Please sign in to comment.