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
+5
View File
@@ -174,6 +174,11 @@ fn write_char(&mut self, c: char) -> Result {
/// 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
///
/// ```