mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] rust: macros: add descriptive doc-comment to internal fmt function
@ 2026-10-29 15:01 Ivan Tverdokhleb
  0 siblings, 0 replies; only message in thread
From: Ivan Tverdokhleb @ 2026-10-29 15:01 UTC (permalink / raw)
  To: Miguel Ojeda; +Cc: rust-for-linux, linux-kernel, Ivan Tverdokhleb

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@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-29 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 15:01 [PATCH] rust: macros: add descriptive doc-comment to internal fmt function Ivan Tverdokhleb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®