diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 82e265c32bfa..1e70e54cf10c 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -348,7 +348,7 @@ fn push_trailing( hi_opt: Option<&Loc>, ) -> usize { let mut line_count = 0; - // Convert `CharPos` to `Usize`, as `CharPos` is character offset + // Convert `CharPos` to `usize`, as `CharPos` is character offset // Extract low index and high index let (lo, hi_opt) = (lo.col.to_usize(), hi_opt.map(|hi| hi.col.to_usize())); if let Some(line) = line_opt {