From 7dd208356e146d4fa6b2f6fab2855fc413489b84 Mon Sep 17 00:00:00 2001 From: burlinchen Date: Mon, 12 Aug 2024 17:34:00 +0800 Subject: [PATCH] chore(lib): Enhance documentation for core::fmt::Formatter's write_fmt method --- core/src/fmt/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/fmt/mod.rs b/core/src/fmt/mod.rs index 60c0dc7685253..8143ff4addcdd 100644 --- a/core/src/fmt/mod.rs +++ b/core/src/fmt/mod.rs @@ -1626,6 +1626,11 @@ impl<'a> Formatter<'a> { self.buf.write_str(data) } + /// Glue for usage of the [`write!`] macro with implementors of this trait. + /// + /// This method should generally not be invoked manually, but rather through + /// the [`write!`] macro itself. + /// /// Writes some formatted information into this instance. /// /// # Examples