Skip to content

Commit bc2b35e

Browse files
docs(rust): use Markdown autolinks in plain URL comments
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: #1153 Signed-off-by: Abhishek Brahmbhatt <brambhattabhishek@gmail.com>
1 parent a2cc6ff commit bc2b35e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/kernel/alloc/kbox.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub type VBox<T> = Box<T, super::allocator::Vmalloc>;
101101
pub type KVBox<T> = Box<T, super::allocator::KVmalloc>;
102102

103103
// SAFETY: All zeros is equivalent to `None` (option layout optimization guarantee:
104-
// https://doc.rust-lang.org/stable/std/option/index.html#representation).
104+
// <https://doc.rust-lang.org/stable/std/option/index.html#representation>).
105105
unsafe impl<T, A: Allocator> ZeroableOption for Box<T, A> {}
106106

107107
// SAFETY: `Box` is `Send` if `T` is `Send` because the `Box` owns a `T`.

rust/pin-init/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ impl_zeroable! {
14471447
{<T: ?Sized + Zeroable>} UnsafeCell<T>,
14481448

14491449
// SAFETY: All zeros is equivalent to `None` (option layout optimization guarantee:
1450-
// https://doc.rust-lang.org/stable/std/option/index.html#representation).
1450+
// <https://doc.rust-lang.org/stable/std/option/index.html#representation>).
14511451
Option<NonZeroU8>, Option<NonZeroU16>, Option<NonZeroU32>, Option<NonZeroU64>,
14521452
Option<NonZeroU128>, Option<NonZeroUsize>,
14531453
Option<NonZeroI8>, Option<NonZeroI16>, Option<NonZeroI32>, Option<NonZeroI64>,

0 commit comments

Comments
 (0)