Skip to content

Commit c5d078f

Browse files
committed
Update docs for std::fmt::format #29355.
This rewords and removes the `Arguments` section from the docs for fmt::format. r? @steveklabnik
1 parent ab5bec2 commit c5d078f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/liballoc/fmt.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,10 @@ pub use core::fmt::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple};
498498

499499
use string;
500500

501-
/// The format function takes a precompiled format string and a list of
502-
/// arguments, to return the resulting formatted string.
501+
/// The `format` function takes an `Arguments` struct and returns the resulting
502+
/// formatted string.
503503
///
504-
/// # Arguments
505-
///
506-
/// * args - a structure of arguments generated via the `format_args!` macro.
504+
/// The `Arguments` instance can be created with the `format_args!` macro.
507505
///
508506
/// # Examples
509507
///

0 commit comments

Comments
 (0)