Rollup merge of #42831 - rthomas:master, r=QuietMisdreavus
Update docs for fmt::write. #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
This commit is contained in:
@@ -897,14 +897,11 @@ pub trait UpperExp {
|
|||||||
fn fmt(&self, f: &mut Formatter) -> Result;
|
fn fmt(&self, f: &mut Formatter) -> Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The `write` function takes an output stream, a precompiled format string,
|
/// The `write` function takes an output stream, and an `Arguments` struct
|
||||||
/// and a list of arguments. The arguments will be formatted according to the
|
/// that can be precompiled with the `format_args!` macro.
|
||||||
/// specified format string into the output stream provided.
|
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// The arguments will be formatted according to the specified format string
|
||||||
///
|
/// into the output stream provided.
|
||||||
/// * output - the buffer to write output to
|
|
||||||
/// * args - the precompiled arguments generated by `format_args!`
|
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user