We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebf27fa commit 763121dCopy full SHA for 763121d
src/librustc_span/source_map.rs
@@ -551,7 +551,7 @@ impl SourceMap {
551
// lines.
552
//
553
// FIXME: now that we handle DUMMY_SP up above, we should consider
554
- // aseerting the line numbers here are all indeed 1-based.
+ // asserting that the line numbers here are all indeed 1-based.
555
let hi_line = hi.line.saturating_sub(1);
556
for line_index in lo.line.saturating_sub(1)..hi_line {
557
let line_len = lo.file.get_line(line_index).map(|s| s.chars().count()).unwrap_or(0);
0 commit comments