diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-05-07 22:44:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-07 22:44:36 +0200 |
| commit | 1386a02dc180f2ad74c90c4c56e8395aadfc7de7 (patch) | |
| tree | 1a3aeeb78331c17c7eb79b1e1980a04ff6541235 | |
| parent | 24a0eecf035235fa58c0b10bad1d3665947842e4 (diff) | |
| parent | 521bb810be1750a196b6b7620968f3261581f862 (diff) | |
| download | rust-1386a02dc180f2ad74c90c4c56e8395aadfc7de7.tar.gz rust-1386a02dc180f2ad74c90c4c56e8395aadfc7de7.zip | |
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
| -rw-r--r-- | library/core/src/ptr/mut_ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index ff5207c1a06..ed80cdc9bf9 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -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 /// |
