Skip to content

Commit 8b32c51

Browse files
author
Ariel Ben-Yehuda
authored
Rollup merge of rust-lang#42831 - rthomas:master, r=QuietMisdreavus
Update docs for fmt::write. rust-lang#29355 I reworded it slightly to make it more clear that the function only take two arguments - the output and the Arguments struct that can be generated from the format_args! macro. r? @steveklabnik
2 parents bea4e60 + b9a44fc commit 8b32c51

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/libcore/fmt/mod.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -897,14 +897,11 @@ pub trait UpperExp {
897897
fn fmt(&self, f: &mut Formatter) -> Result;
898898
}
899899

900-
/// The `write` function takes an output stream, a precompiled format string,
901-
/// and a list of arguments. The arguments will be formatted according to the
902-
/// specified format string into the output stream provided.
900+
/// The `write` function takes an output stream, and an `Arguments` struct
901+
/// that can be precompiled with the `format_args!` macro.
903902
///
904-
/// # Arguments
905-
///
906-
/// * output - the buffer to write output to
907-
/// * args - the precompiled arguments generated by `format_args!`
903+
/// The arguments will be formatted according to the specified format string
904+
/// into the output stream provided.
908905
///
909906
/// # Examples
910907
///

0 commit comments

Comments
 (0)