From 7ecdfae6fc0afc511fe0431f93d31437e08d1a7d Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 11 Apr 2023 11:32:42 -0700 Subject: [PATCH] Minor bug --- src/parser/treeify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/treeify.rs b/src/parser/treeify.rs index d0b5021..cae4c90 100644 --- a/src/parser/treeify.rs +++ b/src/parser/treeify.rs @@ -65,7 +65,7 @@ fn treeify_binary( } else { let tl = *this.get_line_location(); return Err(( - LineLocation{pos: tl.pos, len: l.pos - tl.pos + l.len}, + LineLocation{pos: l.pos, len: tl.pos - l.pos + tl.len}, ParserError::Syntax )); }