summaryrefslogtreecommitdiff
path: root/examples/repl.rs
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2017-08-02 14:36:10 +0200
committerJonas Schievink <jonasschievink@gmail.com>2017-08-02 14:36:10 +0200
commit95698735a2fc3296a13534656be7734a432ce528 (patch)
treece7fb7125c9d9b122deb8cfb8efd1d756b664440 /examples/repl.rs
parent3f20319a840307753ae8c34ab4d8443e70761310 (diff)
downloadmlua-95698735a2fc3296a13534656be7734a432ce528.zip
Fix multiline inputs
Diffstat (limited to 'examples/repl.rs')
-rw-r--r--examples/repl.rs1
1 files changed, 1 insertions, 0 deletions
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) => {