mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Drop pending_src, fix repl tips
This commit is contained in:
parent
6038965cb6
commit
5b36d2c41c
3 changed files with 34 additions and 67 deletions
|
@ -40,12 +40,11 @@ pub fn main() -> i32 {
|
|||
loop {
|
||||
match editor.readline(PROMPT) {
|
||||
Ok(line) => {
|
||||
let trim_line = line.trim();
|
||||
editor.add_history_entry(trim_line);
|
||||
editor.add_history_entry(line.trim());
|
||||
|
||||
let repl_helper = editor.helper_mut().expect("Editor helper was not set");
|
||||
|
||||
match repl_helper.step(trim_line) {
|
||||
match repl_helper.step(&line) {
|
||||
Ok(output) => {
|
||||
// If there was no output, don't print a blank line!
|
||||
// (This happens for something like a type annotation.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue