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
This commit is contained in:
commit
1386a02dc1
@ -287,7 +287,7 @@ pub const fn to_raw_parts(self) -> (*mut (), <T as super::Pointee>::Metadata) {
|
|||||||
/// For the mutable counterpart see [`as_mut`].
|
/// For the mutable counterpart see [`as_mut`].
|
||||||
///
|
///
|
||||||
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
|
/// [`as_uninit_ref`]: #method.as_uninit_ref-1
|
||||||
/// [`as_mut`]: #method.as_mut
|
/// [`as_mut`]: #method.as_mut-1
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user