diff options
Diffstat (limited to 'users/tazjin/rlox/src/interpreter.rs')
-rw-r--r-- | users/tazjin/rlox/src/interpreter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/tazjin/rlox/src/interpreter.rs b/users/tazjin/rlox/src/interpreter.rs index 8a4d5cfef0df..7c5a18dd9ac9 100644 --- a/users/tazjin/rlox/src/interpreter.rs +++ b/users/tazjin/rlox/src/interpreter.rs @@ -11,7 +11,7 @@ pub fn run(code: &str) { print_tokens(&tokens); match parser::parse(tokens) { Ok(expr) => println!("Expression:\n{:?}", expr), - Err(error) => report_errors(vec![error]), + Err(errors) => report_errors(errors), } } Err(errors) => report_errors(errors), |