Skip to content

Commit 1386a02

Browse files
authored
Rollup merge of #96336 - Nilstrieb:link-to-correct-as_mut-in-ptr-as_ref, r=JohnTitor
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`. Closes #96327
2 parents 24a0eec + 521bb81 commit 1386a02

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)