From c6aed0464aedf1bb20aa9dda26165dc006a8f6b9 Mon Sep 17 00:00:00 2001 From: Cedric Hutchings Date: Sun, 26 Jan 2020 01:04:53 -0500 Subject: [PATCH] Add note about when output is printed to mini_repl.rs --- examples/mini_repl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/mini_repl.rs b/examples/mini_repl.rs index 8cbdb35c3..7484a6c75 100644 --- a/examples/mini_repl.rs +++ b/examples/mini_repl.rs @@ -41,6 +41,7 @@ fn main() -> PyResult<()> { .map_err(|err| vm.new_syntax_error(&err))?; // this line also automatically prints the output + // (note that this is only the case when compile::Mode::Single is passed to vm.compile) let output = vm.run_code_obj(code_obj, scope.clone())?; // store the last value in the "last" variable