Clarified description of write! macro

This commit is contained in:
cyqsimon 2020-11-09 23:00:31 +08:00
parent 25f6938da4
commit 2633e93aa0

View File

@ -318,7 +318,7 @@ macro_rules! r#try {
/// Writes formatted data into a buffer. /// Writes formatted data into a buffer.
/// ///
/// This macro accepts a format string, a list of arguments, and a 'writer'. Arguments will be /// This macro accepts a 'writer', a format string, a list of arguments. Arguments will be
/// formatted according to the specified format string and the result will be passed to the writer. /// formatted according to the specified format string and the result will be passed to the writer.
/// The writer may be any value with a `write_fmt` method; generally this comes from an /// The writer may be any value with a `write_fmt` method; generally this comes from an
/// implementation of either the [`fmt::Write`] or the [`io::Write`] trait. The macro /// implementation of either the [`fmt::Write`] or the [`io::Write`] trait. The macro