Skip to content

Commit

Permalink
Rollup merge of #87690 - sharnoff:mut-ptr-allocated-obj-link, r=Mark-…
Browse files Browse the repository at this point in the history
…Simulacrum

Add missing "allocated object" doc link to `<*mut T>::add`

The portion of the documentation expecting the link was already there, but it was rendered as "[allocated object]". The added reference is just copied from the documentation for `<*const T>::add`.
  • Loading branch information
camsteffen authored Aug 2, 2021
2 parents 87a99c5 + 12d199b commit 7fc26e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/ptr/mut_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ impl<T: ?Sized> *mut T {
/// enables more aggressive compiler optimizations.
///
/// [`wrapping_add`]: #method.wrapping_add
/// [allocated object]: crate::ptr#allocated-object
///
/// # Examples
///
Expand Down

0 comments on commit 7fc26e9

Please sign in to comment.