diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-30 10:56:59 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-30 11:22:35 +0100 |
commit | 915530c02029f8bd4444930ed949e14f09afab03 (patch) | |
tree | 6f58b9728386dc5c1709137bc0a250640a7ce572 /examples | |
parent | 414e5838618123cb00216a7426b898aab88ee45a (diff) |
report spans for errors
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tokenize.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tokenize.rs b/examples/tokenize.rs index 8728a18..1c9ea6a 100644 --- a/examples/tokenize.rs +++ b/examples/tokenize.rs @@ -66,9 +66,9 @@ impl TokenSink for TokenPrinter { } println!(">"); } - ParseError(err) => { + ParseError { error, .. } => { self.is_char(false); - println!("ERROR: {}", err); + println!("ERROR: {}", error); } _ => { self.is_char(false); |