Skip to content

Commit 348a250

Browse files
committed
Intra-doc links apparently don't like pointers?
1 parent 875e01e commit 348a250

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/core/src/ptr/const_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl<T: ?Sized> *const T {
5151
/// Casts a pointer to its raw bits.
5252
///
5353
/// This is equivalent to `as usize`, but is more specific to enhance readability.
54-
/// The inverse method is [`Self::from_bits`].
54+
/// The inverse method is [`from_bits`](#method.from_bits).
5555
///
5656
/// In particular, `*p as usize` and `p as usize` will both compile for
5757
/// pointers to numeric types but do very different things, so using this
@@ -78,7 +78,7 @@ impl<T: ?Sized> *const T {
7878
/// Creates a pointer from its raw bits.
7979
///
8080
/// This is equivalent to `as *const T`, but is more specific to enhance readability.
81-
/// The inverse method is [`Self::to_bits`].
81+
/// The inverse method is [`to_bits`](#method.to_bits).
8282
///
8383
/// # Examples
8484
///

library/core/src/ptr/mut_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<T: ?Sized> *mut T {
5050
/// Casts a pointer to its raw bits.
5151
///
5252
/// This is equivalent to `as usize`, but is more specific to enhance readability.
53-
/// The inverse method is [`Self::from_bits`].
53+
/// The inverse method is [`from_bits`](#method.from_bits-1).
5454
///
5555
/// In particular, `*p as usize` and `p as usize` will both compile for
5656
/// pointers to numeric types but do very different things, so using this
@@ -78,7 +78,7 @@ impl<T: ?Sized> *mut T {
7878
/// Creates a pointer from its raw bits.
7979
///
8080
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
81-
/// The inverse method is [`Self::to_bits`].
81+
/// The inverse method is [`to_bits`](#method.to_bits-1).
8282
///
8383
/// # Examples
8484
///

0 commit comments

Comments
 (0)