Skip to content

Commit 54de5b5

Browse files
committed
Revert "Off by one!"
This reverts commit a60f643.
1 parent a2e9725 commit 54de5b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn write_diagnostic(mut buffer: &mut Buffer, d: MultiLineDiagnostic, severit
4646
.labels
4747
.iter()
4848
.map(|l| {
49-
Label::new(l.style, file_id, (l.location.start)..(l.location.end - 1))
49+
Label::new(l.style, file_id, (l.location.start)..(l.location.end))
5050
.with_message(l.label.clone())
5151
})
5252
.collect();

0 commit comments

Comments
 (0)