Skip to content

Commit 763121d

Browse files
pnkfelixCentril
andauthored
Update src/librustc_span/source_map.rs
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent ebf27fa commit 763121d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_span/source_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ impl SourceMap {
551551
// lines.
552552
//
553553
// FIXME: now that we handle DUMMY_SP up above, we should consider
554-
// aseerting the line numbers here are all indeed 1-based.
554+
// asserting that the line numbers here are all indeed 1-based.
555555
let hi_line = hi.line.saturating_sub(1);
556556
for line_index in lo.line.saturating_sub(1)..hi_line {
557557
let line_len = lo.file.get_line(line_index).map(|s| s.chars().count()).unwrap_or(0);

0 commit comments

Comments
 (0)