summaryrefslogtreecommitdiff
path: root/src/diag.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/diag.rs')
-rw-r--r--src/diag.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diag.rs b/src/diag.rs
index 0a532713..7631b6d3 100644
--- a/src/diag.rs
+++ b/src/diag.rs
@@ -85,8 +85,8 @@ impl SourceError {
let full = world.source(self.span.source()).range(self.span);
match self.pos {
ErrorPos::Full => full,
- ErrorPos::Start => full.start .. full.start,
- ErrorPos::End => full.end .. full.end,
+ ErrorPos::Start => full.start..full.start,
+ ErrorPos::End => full.end..full.end,
}
}
}