Skip to content

Commit 1dadd8a

Browse files
rust: comments: fix missing Markdown autolinks for URLs
Some comments in Rust files used plain URLs without Markdown autolink syntax. This patch wraps those URLs with angle brackets to ensure consistency and better rendering in generated documentation. Link: https://github.com/Rust-for-Linux/linux/issues/XXX Signed-off-by: Abhishek Brahmbhatt <[email protected]> Signed-off-by: Abhishek Brahmbhatt <[email protected]>
1 parent a2cc6ff commit 1dadd8a

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)