@@ -428,7 +428,7 @@ impl<'a> Arguments<'a> {
428
428
/// An `UnsafeArg` is required because the following invariants must be held
429
429
/// in order for this function to be safe:
430
430
/// 1. The `pieces` slice must be at least as long as `fmt`.
431
- /// 2. Every [`rt::Argument ::position`] value within `fmt` must be a
431
+ /// 2. Every [`rt::Placeholder ::position`] value within `fmt` must be a
432
432
/// valid index of `args`.
433
433
/// 3. Every [`rt::Count::Param`] within `fmt` must contain a valid index of
434
434
/// `args`.
@@ -438,7 +438,7 @@ impl<'a> Arguments<'a> {
438
438
pub fn new_v1_formatted (
439
439
pieces : & ' a [ & ' static str ] ,
440
440
args : & ' a [ ArgumentV1 < ' a > ] ,
441
- fmt : & ' a [ rt:: Argument ] ,
441
+ fmt : & ' a [ rt:: Placeholder ] ,
442
442
_unsafe_arg : UnsafeArg ,
443
443
) -> Arguments < ' a > {
444
444
Arguments { pieces, fmt : Some ( fmt) , args }
@@ -500,7 +500,7 @@ pub struct Arguments<'a> {
500
500
pieces : & ' a [ & ' static str ] ,
501
501
502
502
// Placeholder specs, or `None` if all specs are default (as in "{}{}").
503
- fmt : Option < & ' a [ rt:: Argument ] > ,
503
+ fmt : Option < & ' a [ rt:: Placeholder ] > ,
504
504
505
505
// Dynamic arguments for interpolation, to be interleaved with string
506
506
// pieces. (Every argument is preceded by a string piece.)
@@ -1276,7 +1276,7 @@ pub fn write(output: &mut dyn Write, args: Arguments<'_>) -> Result {
1276
1276
Ok ( ( ) )
1277
1277
}
1278
1278
1279
- unsafe fn run ( fmt : & mut Formatter < ' _ > , arg : & rt:: Argument , args : & [ ArgumentV1 < ' _ > ] ) -> Result {
1279
+ unsafe fn run ( fmt : & mut Formatter < ' _ > , arg : & rt:: Placeholder , args : & [ ArgumentV1 < ' _ > ] ) -> Result {
1280
1280
fmt. fill = arg. format . fill ;
1281
1281
fmt. align = arg. format . align ;
1282
1282
fmt. flags = arg. format . flags ;
0 commit comments