Skip to content

Commit

Permalink
Rollup merge of #96336 - Nilstrieb:link-to-correct-as_mut-in-ptr-as_r…
Browse files Browse the repository at this point in the history
…ef, 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
  • Loading branch information
matthiaskrgr authored May 7, 2022
2 parents 24a0eec + 521bb81 commit 1386a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/ptr/mut_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl<T: ?Sized> *mut T {
/// For the mutable counterpart see [`as_mut`].
///
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
/// [`as_mut`]: #method.as_mut
/// [`as_mut`]: #method.as_mut-1
///
/// # Safety
///
Expand Down

0 comments on commit 1386a02

Please sign in to comment.