From: Ivan Tverdokhleb <mbkchelofficialdev@gmail.com>
To: Miguel Ojeda <ojeda@kernel.org>
Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org,
Ivan Tverdokhleb <mbkchelofficialdev@gmail.com>
Subject: [PATCH] rust: macros: add descriptive doc-comment to internal fmt function
Date: Thu, 29 Oct 2026 17:01:47 +0200 [thread overview]
Message-ID: <20261029150147.11989-1-mbkchelofficialdev@gmail.com> (raw)
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
reply other threads:[~2026-10-29 15:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261029150147.11989-1-mbkchelofficialdev@gmail.com \
--to=mbkchelofficialdev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.