Skip to content

Commit fdc7061

Browse files
ojeday86-dev
authored andcommitted
Use Markdown autolinks in Rust comments
It allows, for instance, kitty to pick it up as links properly [1]. Suggested-by: Benno Lossin <[email protected]> Link: #32 (comment) [1] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 127b41c commit fdc7061

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/pthread_mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: Apache-2.0 OR MIT
22

3-
// inspired by https://github.com/nbdd0121/pin-init/blob/trunk/examples/pthread_mutex.rs
3+
// inspired by <https://github.com/nbdd0121/pin-init/blob/trunk/examples/pthread_mutex.rs>
44
#![allow(clippy::undocumented_unsafe_blocks)]
55
#![cfg_attr(feature = "alloc", feature(allocator_api))]
66
#[cfg(not(windows))]

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)