diff --git a/compiler/reporting/src/report.rs b/compiler/reporting/src/report.rs index e264ed9aff..2a42234b7e 100644 --- a/compiler/reporting/src/report.rs +++ b/compiler/reporting/src/report.rs @@ -116,12 +116,12 @@ impl ReportText { Region(region) => { for i in region.start_line..=region.end_line { buf.push_str(i.to_string().as_str()); - buf.push_str(" |"); + buf.push_str(" ┆"); let line = src_lines[i as usize]; if !line.is_empty() { - buf.push(' '); + buf.push_str(" "); buf.push_str(src_lines[i as usize]); } diff --git a/compiler/reporting/tests/test_reporting.rs b/compiler/reporting/tests/test_reporting.rs index 12d5f8bbb5..de8311bf1a 100644 --- a/compiler/reporting/tests/test_reporting.rs +++ b/compiler/reporting/tests/test_reporting.rs @@ -218,7 +218,7 @@ mod test_report { r#" x = 1 y = 2 - f = \a -> a + 4 + f = \a -> a + 4 f x "# @@ -231,9 +231,9 @@ mod test_report { })), indoc!( r#" - 1 | y = 2 - 2 | f = \a -> a + 4 - 3 |"# + 1 ┆ y = 2 + 2 ┆ f = \a -> a + 4 + 3 ┆"# ), ); }