From bc2b35ee76037f47c87ccc59aa1a93eda5fa5578 Mon Sep 17 00:00:00 2001 From: Abhishek Brahmbhatt Date: Sat, 5 Apr 2025 01:36:39 +0530 Subject: [PATCH] docs(rust): use Markdown autolinks in plain URL comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1153 – some comments in Rust files were using plain URLs instead of Markdown autolink syntax. This change updates them to use proper autolinks for consistency and improved rendering in documentation tools. Link: https://github.com/Rust-for-Linux/linux/issues/1153 Signed-off-by: Abhishek Brahmbhatt --- rust/kernel/alloc/kbox.rs | 2 +- rust/pin-init/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/kernel/alloc/kbox.rs b/rust/kernel/alloc/kbox.rs index b77d32f3a58bab..604d12c6f5bdd4 100644 --- a/rust/kernel/alloc/kbox.rs +++ b/rust/kernel/alloc/kbox.rs @@ -101,7 +101,7 @@ pub type VBox = Box; pub type KVBox = Box; // SAFETY: All zeros is equivalent to `None` (option layout optimization guarantee: -// https://doc.rust-lang.org/stable/std/option/index.html#representation). +// ). unsafe impl ZeroableOption for Box {} // SAFETY: `Box` is `Send` if `T` is `Send` because the `Box` owns a `T`. diff --git a/rust/pin-init/src/lib.rs b/rust/pin-init/src/lib.rs index 05c44514765ef8..0806c689f693c1 100644 --- a/rust/pin-init/src/lib.rs +++ b/rust/pin-init/src/lib.rs @@ -1447,7 +1447,7 @@ impl_zeroable! { {} UnsafeCell, // SAFETY: All zeros is equivalent to `None` (option layout optimization guarantee: - // https://doc.rust-lang.org/stable/std/option/index.html#representation). + // ). Option, Option, Option, Option, Option, Option, Option, Option, Option, Option,