Skip to content

Commit 9746a8d

Browse files
author
Leo Pourcelot
committed
Fix error introduced in merge conflicts resolution
1 parent c0fefbe commit 9746a8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/repl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ pub fn repl() {
6767
for line in stdin.lock().lines() {
6868
let line = line.unwrap();
6969
input_buffer.push_str(&line);
70-
let mut remaining_input = remaining_input_buffer.as_str();
70+
let mut remaining_input = input_buffer.as_str();
7171
loop {
7272
let next_read_parse = reader::try_read(remaining_input);
7373
match next_read_parse {
74-
Ok((_remaining_input_bytes, value)) => {
74+
Ok((_remaining_input, value)) => {
7575
print!(
7676
"{} ",
7777
value.eval(Rc::clone(&environment)).to_string_explicit()
7878
);
79-
remaining_input_bytes = _remaining_input_bytes;
79+
remaining_input = _remaining_input;
8080
}
8181
Err(Incomplete(_)) => {
8282
break;

0 commit comments

Comments
 (0)