From c466be040f123289935c1f3a10fa8aba202bfcc8 Mon Sep 17 00:00:00 2001 From: Alexander Shirokov Date: Fri, 2 Dec 2022 14:10:45 +0100 Subject: [PATCH] Added error documentation for write_fmt This continuation of work at rust-lang#98861 --- library/core/src/fmt/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 51e6a76cea8..fa5073e3304 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -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 /// /// ```