Skip to content

Commit 2ce7cd9

Browse files
Fix intra-doc links from pointer appearing in windows HANDLE type alias
1 parent 6f552c8 commit 2ce7cd9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: library/core/src/ptr/mut_ptr.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<T: ?Sized> *mut T {
106106
/// with [`cast_mut`] on `*const T` and may have documentation value if used instead of implicit
107107
/// coercion.
108108
///
109-
/// [`cast_mut`]: #method.cast_mut
109+
/// [`cast_mut`]: pointer::cast_mut
110110
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
111111
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
112112
#[inline(always)]
@@ -117,7 +117,7 @@ impl<T: ?Sized> *mut T {
117117
/// Casts a pointer to its raw bits.
118118
///
119119
/// This is equivalent to `as usize`, but is more specific to enhance readability.
120-
/// The inverse method is [`from_bits`](#method.from_bits-1).
120+
/// The inverse method is [`from_bits`](pointer#method.from_bits-1).
121121
///
122122
/// In particular, `*p as usize` and `p as usize` will both compile for
123123
/// pointers to numeric types but do very different things, so using this
@@ -153,7 +153,7 @@ impl<T: ?Sized> *mut T {
153153
/// Creates a pointer from its raw bits.
154154
///
155155
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
156-
/// The inverse method is [`to_bits`](#method.to_bits-1).
156+
/// The inverse method is [`to_bits`](pointer#method.to_bits-1).
157157
///
158158
/// # Examples
159159
///
@@ -303,7 +303,7 @@ impl<T: ?Sized> *mut T {
303303
///
304304
/// For the mutable counterpart see [`as_mut`].
305305
///
306-
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
306+
/// [`as_uninit_ref`]: pointer#method.as_uninit_ref-1
307307
/// [`as_mut`]: #method.as_mut
308308
///
309309
/// # Safety
@@ -369,7 +369,7 @@ impl<T: ?Sized> *mut T {
369369
///
370370
/// For the mutable counterpart see [`as_uninit_mut`].
371371
///
372-
/// [`as_ref`]: #method.as_ref-1
372+
/// [`as_ref`]: pointer#method.as_ref-1
373373
/// [`as_uninit_mut`]: #method.as_uninit_mut
374374
///
375375
/// # Safety
@@ -624,7 +624,7 @@ impl<T: ?Sized> *mut T {
624624
/// For the shared counterpart see [`as_ref`].
625625
///
626626
/// [`as_uninit_mut`]: #method.as_uninit_mut
627-
/// [`as_ref`]: #method.as_ref-1
627+
/// [`as_ref`]: pointer#method.as_ref-1
628628
///
629629
/// # Safety
630630
///
@@ -689,7 +689,7 @@ impl<T: ?Sized> *mut T {
689689
/// For the shared counterpart see [`as_uninit_ref`].
690690
///
691691
/// [`as_mut`]: #method.as_mut
692-
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
692+
/// [`as_uninit_ref`]: pointer#method.as_uninit_ref-1
693693
///
694694
/// # Safety
695695
///
@@ -779,7 +779,7 @@ impl<T: ?Sized> *mut T {
779779
///
780780
/// This function is the inverse of [`offset`].
781781
///
782-
/// [`offset`]: #method.offset-1
782+
/// [`offset`]: pointer#method.offset-1
783783
///
784784
/// # Safety
785785
///
@@ -2051,7 +2051,7 @@ impl<T> *mut [T] {
20512051
///
20522052
/// For the mutable counterpart see [`as_uninit_slice_mut`].
20532053
///
2054-
/// [`as_ref`]: #method.as_ref-1
2054+
/// [`as_ref`]: pointer#method.as_ref-1
20552055
/// [`as_uninit_slice_mut`]: #method.as_uninit_slice_mut
20562056
///
20572057
/// # Safety

0 commit comments

Comments
 (0)