Skip to content

Commit 87ecb0a

Browse files
Rollup merge of rust-lang#78896 - cyqsimon:master, r=m-ou-se
Clarified description of write! macro Reordered the list of arguments in the description to match that in the actual macro. Suggested and discussed [here](https://discord.com/channels/442252698964721669/443492145567891458/774341262609219624).
2 parents 1952f04 + bf982a5 commit 87ecb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ macro_rules! r#try {
318318

319319
/// Writes formatted data into a buffer.
320320
///
321-
/// This macro accepts a format string, a list of arguments, and a 'writer'. Arguments will be
321+
/// This macro accepts a 'writer', a format string, and a list of arguments. Arguments will be
322322
/// formatted according to the specified format string and the result will be passed to the writer.
323323
/// The writer may be any value with a `write_fmt` method; generally this comes from an
324324
/// implementation of either the [`fmt::Write`] or the [`io::Write`] trait. The macro

0 commit comments

Comments
 (0)