Added error documentation for write_fmt

This continuation of work at rust-lang#98861
This commit is contained in:
Alexander Shirokov 2022-12-02 14:10:45 +01:00 committed by Alexander Shirokov
parent 442f997f98
commit c466be040f
No known key found for this signature in database
GPG Key ID: 6020E4D7AFA8ECE7

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
///
/// ```