Intra-doc links apparently don't like pointers?

This commit is contained in:
Scott McMurray 2021-11-22 02:40:56 -08:00
parent 875e01e616
commit 348a25044b
2 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@ impl<T: ?Sized> *const T {
/// Casts a pointer to its raw bits.
///
/// This is equivalent to `as usize`, but is more specific to enhance readability.
/// The inverse method is [`Self::from_bits`].
/// The inverse method is [`from_bits`](#method.from_bits).
///
/// In particular, `*p as usize` and `p as usize` will both compile for
/// pointers to numeric types but do very different things, so using this
@ -78,7 +78,7 @@ impl<T: ?Sized> *const T {
/// Creates a pointer from its raw bits.
///
/// This is equivalent to `as *const T`, but is more specific to enhance readability.
/// The inverse method is [`Self::to_bits`].
/// The inverse method is [`to_bits`](#method.to_bits).
///
/// # Examples
///

View file

@ -50,7 +50,7 @@ impl<T: ?Sized> *mut T {
/// Casts a pointer to its raw bits.
///
/// This is equivalent to `as usize`, but is more specific to enhance readability.
/// The inverse method is [`Self::from_bits`].
/// The inverse method is [`from_bits`](#method.from_bits-1).
///
/// In particular, `*p as usize` and `p as usize` will both compile for
/// pointers to numeric types but do very different things, so using this
@ -78,7 +78,7 @@ impl<T: ?Sized> *mut T {
/// Creates a pointer from its raw bits.
///
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
/// The inverse method is [`Self::to_bits`].
/// The inverse method is [`to_bits`](#method.to_bits-1).
///
/// # Examples
///