We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0e204f + 548b5d2 commit c268b39Copy full SHA for c268b39
compiler/rustc_errors/src/lib.rs
@@ -348,7 +348,7 @@ impl CodeSuggestion {
348
hi_opt: Option<&Loc>,
349
) -> usize {
350
let mut line_count = 0;
351
- // Convert CharPos to Usize, as CharPose is character offset
+ // Convert `CharPos` to `usize`, as `CharPos` is character offset
352
// Extract low index and high index
353
let (lo, hi_opt) = (lo.col.to_usize(), hi_opt.map(|hi| hi.col.to_usize()));
354
if let Some(line) = line_opt {
0 commit comments