Skip to content

Commit

Permalink
Update src/librustc_span/source_map.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
  • Loading branch information
pnkfelix and Centril committed Mar 23, 2020
1 parent ebf27fa commit 763121d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_span/source_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ impl SourceMap {
// lines.
//
// FIXME: now that we handle DUMMY_SP up above, we should consider
// aseerting the line numbers here are all indeed 1-based.
// asserting that the line numbers here are all indeed 1-based.
let hi_line = hi.line.saturating_sub(1);
for line_index in lo.line.saturating_sub(1)..hi_line {
let line_len = lo.file.get_line(line_index).map(|s| s.chars().count()).unwrap_or(0);
Expand Down

0 comments on commit 763121d

Please sign in to comment.