Skip to content

Commit c6aed04

Browse files
committed
Add note about when output is printed to mini_repl.rs
1 parent 9beb442 commit c6aed04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/mini_repl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ fn main() -> PyResult<()> {
4141
.map_err(|err| vm.new_syntax_error(&err))?;
4242

4343
// this line also automatically prints the output
44+
// (note that this is only the case when compile::Mode::Single is passed to vm.compile)
4445
let output = vm.run_code_obj(code_obj, scope.clone())?;
4546

4647
// store the last value in the "last" variable

0 commit comments

Comments
 (0)