Skip to content

Commit

Permalink
Fix lo
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 28, 2022
1 parent 942af3f commit 6a57ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_error_reporters/src/lib.rs
Expand Up @@ -111,7 +111,7 @@ impl SourceCode for MietteSourceCode<'_> {
let lo = src.len() - src.trim_start().len();
let hi = src.len() - src.trim_end().len();

span.lo.0 -= lo as u32;
span.lo.0 += lo as u32;
span.hi.0 -= hi as u32;

span
Expand Down

0 comments on commit 6a57ac8

Please sign in to comment.