summaryrefslogtreecommitdiff
path: root/dhall_syntax
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dhall_syntax/src/core/span.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall_syntax/src/core/span.rs b/dhall_syntax/src/core/span.rs
index ad5a3a9..f0eb89a 100644
--- a/dhall_syntax/src/core/span.rs
+++ b/dhall_syntax/src/core/span.rs
@@ -37,7 +37,7 @@ impl Span {
(Parsed(x), Parsed(y)) => Span::Parsed(ParsedSpan {
input: x.input.clone(),
start: min(x.start, y.start),
- end: max(x.start, y.start),
+ end: max(x.end, y.end),
}),
}
}