diff options
author | Jonas Schievink <jonasschievink@gmail.com> | 2017-08-02 14:36:10 +0200 |
---|---|---|
committer | Jonas Schievink <jonasschievink@gmail.com> | 2017-08-02 14:36:10 +0200 |
commit | 95698735a2fc3296a13534656be7734a432ce528 (patch) | |
tree | ce7fb7125c9d9b122deb8cfb8efd1d756b664440 /examples/repl.rs | |
parent | 3f20319a840307753ae8c34ab4d8443e70761310 (diff) | |
download | mlua-95698735a2fc3296a13534656be7734a432ce528.zip |
Fix multiline inputs
Diffstat (limited to 'examples/repl.rs')
-rw-r--r-- | examples/repl.rs | 1 |
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) => { |