Skip to content

Commit 20768b2

Browse files
GuillaumeGomeznotriddle
authored andcommitted
Fix intra-doc links from pointer appearing in windows HANDLE type alias
1 parent 19edb3c commit 20768b2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

library/core/src/ptr/mut_ptr.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<T: ?Sized> *mut T {
109109
/// with [`cast_mut`] on `*const T` and may have documentation value if used instead of implicit
110110
/// coercion.
111111
///
112-
/// [`cast_mut`]: #method.cast_mut
112+
/// [`cast_mut`]: pointer::cast_mut
113113
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
114114
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
115115
#[rustc_diagnostic_item = "ptr_cast_const"]
@@ -121,7 +121,7 @@ impl<T: ?Sized> *mut T {
121121
/// Casts a pointer to its raw bits.
122122
///
123123
/// This is equivalent to `as usize`, but is more specific to enhance readability.
124-
/// The inverse method is [`from_bits`](#method.from_bits-1).
124+
/// The inverse method is [`from_bits`](pointer#method.from_bits-1).
125125
///
126126
/// In particular, `*p as usize` and `p as usize` will both compile for
127127
/// pointers to numeric types but do very different things, so using this
@@ -157,7 +157,7 @@ impl<T: ?Sized> *mut T {
157157
/// Creates a pointer from its raw bits.
158158
///
159159
/// This is equivalent to `as *mut T`, but is more specific to enhance readability.
160-
/// The inverse method is [`to_bits`](#method.to_bits-1).
160+
/// The inverse method is [`to_bits`](pointer#method.to_bits-1).
161161
///
162162
/// # Examples
163163
///
@@ -307,7 +307,7 @@ impl<T: ?Sized> *mut T {
307307
///
308308
/// For the mutable counterpart see [`as_mut`].
309309
///
310-
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
310+
/// [`as_uninit_ref`]: pointer#method.as_uninit_ref-1
311311
/// [`as_mut`]: #method.as_mut
312312
///
313313
/// # Safety
@@ -373,7 +373,7 @@ impl<T: ?Sized> *mut T {
373373
///
374374
/// For the mutable counterpart see [`as_uninit_mut`].
375375
///
376-
/// [`as_ref`]: #method.as_ref-1
376+
/// [`as_ref`]: pointer#method.as_ref-1
377377
/// [`as_uninit_mut`]: #method.as_uninit_mut
378378
///
379379
/// # Safety
@@ -628,7 +628,7 @@ impl<T: ?Sized> *mut T {
628628
/// For the shared counterpart see [`as_ref`].
629629
///
630630
/// [`as_uninit_mut`]: #method.as_uninit_mut
631-
/// [`as_ref`]: #method.as_ref-1
631+
/// [`as_ref`]: pointer#method.as_ref-1
632632
///
633633
/// # Safety
634634
///
@@ -693,7 +693,7 @@ impl<T: ?Sized> *mut T {
693693
/// For the shared counterpart see [`as_uninit_ref`].
694694
///
695695
/// [`as_mut`]: #method.as_mut
696-
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
696+
/// [`as_uninit_ref`]: pointer#method.as_uninit_ref-1
697697
///
698698
/// # Safety
699699
///
@@ -783,7 +783,7 @@ impl<T: ?Sized> *mut T {
783783
///
784784
/// This function is the inverse of [`offset`].
785785
///
786-
/// [`offset`]: #method.offset-1
786+
/// [`offset`]: pointer#method.offset-1
787787
///
788788
/// # Safety
789789
///
@@ -2064,7 +2064,7 @@ impl<T> *mut [T] {
20642064
///
20652065
/// For the mutable counterpart see [`as_uninit_slice_mut`].
20662066
///
2067-
/// [`as_ref`]: #method.as_ref-1
2067+
/// [`as_ref`]: pointer#method.as_ref-1
20682068
/// [`as_uninit_slice_mut`]: #method.as_uninit_slice_mut
20692069
///
20702070
/// # Safety

0 commit comments

Comments
 (0)