From 95698735a2fc3296a13534656be7734a432ce528 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 2 Aug 2017 14:36:10 +0200 Subject: [PATCH] Fix multiline inputs --- examples/repl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/repl.rs b/examples/repl.rs index aca78f0..3cde4d5 100644 --- a/examples/repl.rs +++ b/examples/repl.rs @@ -35,6 +35,7 @@ fn main() { } Err(Error::IncompleteStatement(_)) => { // continue reading input and append it to `line` + line.push_str("\n"); // separate input lines prompt = ">> "; } Err(e) => {