Skip to content

Commit 7fc26e9

Browse files
authored
Rollup merge of #87690 - sharnoff:mut-ptr-allocated-obj-link, r=Mark-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`.
2 parents 87a99c5 + 12d199b commit 7fc26e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/ptr/mut_ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ impl<T: ?Sized> *mut T {
596596
/// enables more aggressive compiler optimizations.
597597
///
598598
/// [`wrapping_add`]: #method.wrapping_add
599+
/// [allocated object]: crate::ptr#allocated-object
599600
///
600601
/// # Examples
601602
///

0 commit comments

Comments
 (0)