[PATCH] rust: macros: add descriptive doc-comment to internal fmt function
From: Ivan Tverdokhleb
Date: Thu Oct 29 2026 - 11:09:09 EST
Add descriptive documentation comments to the internal formatting function,
explaining its role in parsing format strings and wrapping arguments into
the Adapter helper.
Signed-off-by: Ivan Tverdokhleb <mbkchelofficialdev@xxxxxxxxx>
---
rust/macros/fmt.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rust/macros/fmt.rs b/rust/macros/fmt.rs
index ce6c72493..676156dc9 100644
--- a/rust/macros/fmt.rs
+++ b/rust/macros/fmt.rs
@@ -6,6 +6,9 @@
use quote::quote_spanned;
/// Please see [`crate::fmt`] for documentation.
+///
+/// This function parses the format string, extracts named arguments from curly braces,
+/// and wraps arguments into the `Adapter` helper.
pub(crate) fn fmt(input: TokenStream) -> TokenStream {
let mut input = input.into_iter();
--
2.56.0