Skip to content

Commit 521bb81

Browse files
committed
Link to correct as_mut in docs for pointer::as_ref
It previously linked to the unstable const-mut-cast method instead of the `mut` counterpart for `as_ref`.
1 parent 09064a2 commit 521bb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/mut_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl<T: ?Sized> *mut T {
287287
/// For the mutable counterpart see [`as_mut`].
288288
///
289289
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
290-
/// [`as_mut`]: #method.as_mut
290+
/// [`as_mut`]: #method.as_mut-1
291291
///
292292
/// # Safety
293293
///

0 commit comments

Comments
 (0)