diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-04-23 13:42:26 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-04-23 13:42:26 +0200 |
| commit | 521bb810be1750a196b6b7620968f3261581f862 (patch) | |
| tree | ac586656dd7859614a5dff02ab20f73b9dd4d8be | |
| parent | 09064a21b05df8a5f92d34622c467bd037a923fd (diff) | |
| download | rust-521bb810be1750a196b6b7620968f3261581f862.tar.gz rust-521bb810be1750a196b6b7620968f3261581f862.zip | |
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`.
| -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 56f9c84f5af..ed33cad5751 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 /// |
