@@ -401,19 +401,18 @@ impl<'a> Arguments<'a> {
401
401
/// safely be done, so no constructors are given and the fields are private
402
402
/// to prevent modification.
403
403
///
404
- /// The [`format_args!`] macro will safely create an instance of this structure
405
- /// and pass it to a function or closure, passed as the first argument. The
406
- /// macro validates the format string at compile-time so usage of the [`write`]
407
- /// and [`format`] functions can be safely performed.
404
+ /// The [`format_args!`] macro will safely create an instance of this structure.
405
+ /// The macro validates the format string at compile-time so usage of the
406
+ /// [`write`] and [`format`] functions can be safely performed.
408
407
///
409
408
/// You can use the `Arguments<'a>` that [`format_args!`] returns in `Debug`
410
409
/// and `Display` contexts as seen below. The example also shows that `Debug`
411
410
/// and `Display` format to the same thing: the interpolated format string
412
411
/// in `format_args!`.
413
412
///
414
413
/// ```rust
415
- /// let display = format!("{:?}", format_args!("{} foo {:?}", 1, 2));
416
- /// let debug = format!("{}", format_args!("{} foo {:?}", 1, 2));
414
+ /// let debug = format!("{:?}", format_args!("{} foo {:?}", 1, 2));
415
+ /// let display = format!("{}", format_args!("{} foo {:?}", 1, 2));
417
416
/// assert_eq!("1 foo 2", display);
418
417
/// assert_eq!(display, debug);
419
418
/// ```
0 commit comments