Skip to content

Commit 5682494

Browse files
author
Ariel Ben-Yehuda
authored
Rollup merge of rust-lang#42832 - rthomas:doc-fmt, r=steveklabnik
Update docs for std::fmt::format rust-lang#29355. This rewords and removes the `Arguments` section from the docs for fmt::format. r? @steveklabnik
2 parents 8b32c51 + c5d078f commit 5682494

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)