]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: pin-init: use Markdown autolinks in Rust comments
authorMiguel Ojeda <ojeda@kernel.org>
Mon, 7 Apr 2025 20:18:29 +0000 (20:18 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 8 Apr 2025 19:12:58 +0000 (21:12 +0200)
commit193b5a75744af2669ad7c5f7aa4f9219dc73ca69
tree73e2eca00156a7ee6f2820bede14ff61d2350c65
parent3c75fff196c35c3bbe8c212ad03db94994130b32
rust: pin-init: use Markdown autolinks in Rust comments

"Normal" comments in Rust (`//`) are also formatted in Markdown, like
the documentation (`///` and `//!`), see
Documentation/rust/coding-guidelines.rst

Thus use Markdown autolinks for a couple links that were missing it.

It also helps to get proper linking in some software like kitty [1].

Suggested-by: Benno Lossin <benno.lossin@proton.me>
Link: https://github.com/Rust-for-Linux/pin-init/pull/32#discussion_r2023103712
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/pin-init/pull/32/commits/dd230d61bf0538281072fbff4bb71efc58f3420c
Fixes: 84837cf6fa54 ("rust: pin-init: change examples to the user-space version")
Cc: stable@vger.kernel.org
[ Change case in title. Reworded commit message. - Benno ]
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20250407201755.649153-3-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/pin-init/examples/pthread_mutex.rs
rust/pin-init/src/lib.rs