Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm

Added error documentation for write_fmt

This continuation of work at rust-lang#98861
This commit is contained in:
Yuki Okushi 2023-01-14 12:04:32 +09:00 committed by GitHub
commit 6d8ac8389e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,11 @@ pub trait Write {
/// This method should generally not be invoked manually, but rather through
/// the [`write!`] macro itself.
///
/// # Errors
///
/// This function will return an instance of [`Error`] on error. Please see
/// [write_str](Write::write_str) for details.
///
/// # Examples
///
/// ```