Skip to content

Commit c268b39

Browse files
committed
Auto merge of #148882 - 20jasper:patch-1, r=nnethercote,Kivooeo
Fix typo in comment in rustc_errors It seems "CharPose" was a typo since I couldn't find any references to it anywhere else in the codebase
2 parents e0e204f + 548b5d2 commit c268b39

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_errors/src

1 file changed

+1
-1
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ impl CodeSuggestion {
348348
hi_opt: Option<&Loc>,
349349
) -> usize {
350350
let mut line_count = 0;
351-
// Convert CharPos to Usize, as CharPose is character offset
351+
// Convert `CharPos` to `usize`, as `CharPos` is character offset
352352
// Extract low index and high index
353353
let (lo, hi_opt) = (lo.col.to_usize(), hi_opt.map(|hi| hi.col.to_usize()));
354354
if let Some(line) = line_opt {

0 commit comments

Comments
 (0)