Skip to content

Commit b9a44fc

Browse files
committed
Update docs for fmt::write.
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
1 parent ab5bec2 commit b9a44fc

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)