@@ -317,26 +317,27 @@ macro_rules! try {
317
317
318
318
/// Write formatted data into a buffer
319
319
///
320
- /// This macro accepts any value with `write_fmt` method as a writer , a format string, and a list
321
- /// of arguments to format.
320
+ /// This macro accepts a 'writer' ( any value with a `write_fmt` method) , a format string, and a
321
+ /// list of arguments to format.
322
322
///
323
- /// `write_fmt` method usually comes from an implementation of [`std::fmt::Write`][fmt_write] or
324
- /// [`std::io::Write`][io_write] traits. These are sometimes called 'writers'.
323
+ /// The `write_fmt` method usually comes from an implementation of [`std::fmt::Write`][fmt_write]
324
+ /// or [`std::io::Write`][io_write] traits. The term 'writer' refers to an implementation of one of
325
+ /// these two traits.
325
326
///
326
327
/// Passed arguments will be formatted according to the specified format string and the resulting
327
328
/// string will be passed to the writer.
328
329
///
329
330
/// See [`std::fmt`][fmt] for more information on format syntax.
330
331
///
331
- /// Return value is completely dependent on the 'write_fmt' method.
332
+ /// `write!` returns whatever the 'write_fmt' method returns .
332
333
///
333
- /// Common return values are : [`Result`][enum_result ], [`io::Result`][type_result ]
334
+ /// Common return values include : [`fmt:: Result`][fmt_result ], [`io::Result`][io_result ]
334
335
///
335
336
/// [fmt]: ../std/fmt/index.html
336
337
/// [fmt_write]: ../std/fmt/trait.Write.html
337
338
/// [io_write]: ../std/io/trait.Write.html
338
- /// [enum_result ]: ../std/result/enum .Result.html
339
- /// [type_result ]: ../std/io/type.Result.html
339
+ /// [fmt_result ]: ../std/fmt/type .Result.html
340
+ /// [io_result ]: ../std/io/type.Result.html
340
341
///
341
342
/// # Examples
342
343
///
@@ -355,31 +356,32 @@ macro_rules! write {
355
356
( $dst: expr, $( $arg: tt) * ) => ( $dst. write_fmt( format_args!( $( $arg) * ) ) )
356
357
}
357
358
358
- /// Write formatted data into a buffer, with appending a newline.
359
+ /// Write formatted data into a buffer, with a newline appended .
359
360
///
360
361
/// On all platforms, the newline is the LINE FEED character (`\n`/`U+000A`) alone
361
362
/// (no additional CARRIAGE RETURN (`\r`/`U+000D`).
362
363
///
363
- /// This macro accepts any value with `write_fmt` method as a writer , a format string, and a list
364
- /// of arguments to format.
364
+ /// This macro accepts a 'writer' ( any value with a `write_fmt` method) , a format string, and a
365
+ /// list of arguments to format.
365
366
///
366
- /// `write_fmt` method usually comes from an implementation of [`std::fmt::Write`][fmt_write] or
367
- /// [`std::io::Write`][io_write] traits. These are sometimes called 'writers'.
367
+ /// The `write_fmt` method usually comes from an implementation of [`std::fmt::Write`][fmt_write]
368
+ /// or [`std::io::Write`][io_write] traits. The term 'writer' refers to an implementation of one of
369
+ /// these two traits.
368
370
///
369
371
/// Passed arguments will be formatted according to the specified format string and the resulting
370
- /// string will be passed to the writer.
372
+ /// string will be passed to the writer, along with the appended newline .
371
373
///
372
374
/// See [`std::fmt`][fmt] for more information on format syntax.
373
375
///
374
- /// Return value is completely dependent on the 'write_fmt' method.
376
+ /// `write!` returns whatever the 'write_fmt' method returns .
375
377
///
376
- /// Common return values are : [`Result`][enum_result ], [`io::Result`][type_result ]
378
+ /// Common return values include : [`fmt:: Result`][fmt_result ], [`io::Result`][io_result ]
377
379
///
378
380
/// [fmt]: ../std/fmt/index.html
379
381
/// [fmt_write]: ../std/fmt/trait.Write.html
380
382
/// [io_write]: ../std/io/trait.Write.html
381
- /// [enum_result ]: ../std/result/enum .Result.html
382
- /// [type_result ]: ../std/io/type.Result.html
383
+ /// [fmt_result ]: ../std/fmt/type .Result.html
384
+ /// [io_result ]: ../std/io/type.Result.html
383
385
///
384
386
/// # Examples
385
387
///
0 commit comments