Skip to contentSkip to conversation

rust: macros: add descriptive doc-comment to internal fmt function

PATCH In review Ivan Tverdokhleb 1 participant 2 messages Oct 29 – Nov 13 Rust

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: macros: add descriptive doc-comment to internal fmt function

Add descriptive documentation comments to the internal formatting function,

explaining its role in parsing format strings and wrapping arguments into

the Adapter helper.

---
 rust/macros/fmt.rs | 3 +++
 1 file changed, 3 insertions(+)
rust/macros/fmt.rs +3 -0
index ce6c72493..676156dc9 100644
@@ -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();
 
Signature · 1 line
2.56.0
author
#1 lore raw

Hi,

Friendly ping on this patch.

Thanks,
Ivan

чт, 29 окт. 2026 г. в 17:02, Ivan Tverdokhleb <[email protected]>:

Quoted 29 lines

Add descriptive documentation comments to the internal formatting function,

explaining its role in parsing format strings and wrapping arguments into

the Adapter helper.

---
 rust/macros/fmt.rs | 3 +++
 1 file changed, 3 insertions(+)
rust/macros/fmt.rs +3 -1
index ce6c72493..676156dc9 100644
@@ -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