@@ -316,7 +316,7 @@ fn make_format_args(
316
316
317
317
let mut used = vec ! [ false ; args. explicit_args( ) . len( ) ] ;
318
318
let mut invalid_refs = Vec :: new ( ) ;
319
- let mut numeric_refences_to_named_arg = Vec :: new ( ) ;
319
+ let mut numeric_references_to_named_arg = Vec :: new ( ) ;
320
320
321
321
enum ArgRef < ' a > {
322
322
Index ( usize ) ,
@@ -337,7 +337,7 @@ fn make_format_args(
337
337
used[ index] = true ;
338
338
if arg. kind . ident ( ) . is_some ( ) {
339
339
// This was a named argument, but it was used as a positional argument.
340
- numeric_refences_to_named_arg . push ( ( index, span, used_as) ) ;
340
+ numeric_references_to_named_arg . push ( ( index, span, used_as) ) ;
341
341
}
342
342
Ok ( index)
343
343
} else {
@@ -545,7 +545,7 @@ fn make_format_args(
545
545
// Only check for unused named argument names if there are no other errors to avoid causing
546
546
// too much noise in output errors, such as when a named argument is entirely unused.
547
547
if invalid_refs. is_empty ( ) && !has_unused && !unnamed_arg_after_named_arg {
548
- for & ( index, span, used_as) in & numeric_refences_to_named_arg {
548
+ for & ( index, span, used_as) in & numeric_references_to_named_arg {
549
549
let ( position_sp_to_replace, position_sp_for_msg) = match used_as {
550
550
Placeholder ( pspan) => ( span, pspan) ,
551
551
Precision => {
0 commit comments