File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ impl<T: ?Sized> *const T {
483
483
///
484
484
/// This operation itself is always safe, but using the resulting pointer is not.
485
485
///
486
- /// The resulting pointer "remembers" the [allocated object] that `self` points to; it must not
486
+ /// The resulting pointer "remembers"[^1] the [allocated object] that `self` points to; it must not
487
487
/// be used to read or write other allocated objects.
488
488
///
489
489
/// In other words, `let z = x.wrapping_offset((y as isize) - (x as isize))` does *not* make `z`
@@ -504,6 +504,7 @@ impl<T: ?Sized> *const T {
504
504
///
505
505
/// [`offset`]: #method.offset
506
506
/// [allocated object]: crate::ptr#allocated-object
507
+ /// [^1]: This is called "[Provenance](ptr/index.html#provenance)"
507
508
///
508
509
/// # Examples
509
510
///
Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ impl<T: ?Sized> *mut T {
482
482
///
483
483
/// This operation itself is always safe, but using the resulting pointer is not.
484
484
///
485
- /// The resulting pointer "remembers" the [allocated object] that `self` points to; it must not
485
+ /// The resulting pointer "remembers"[^1] the [allocated object] that `self` points to; it must not
486
486
/// be used to read or write other allocated objects.
487
487
///
488
488
/// In other words, `let z = x.wrapping_offset((y as isize) - (x as isize))` does *not* make `z`
@@ -503,6 +503,7 @@ impl<T: ?Sized> *mut T {
503
503
///
504
504
/// [`offset`]: #method.offset
505
505
/// [allocated object]: crate::ptr#allocated-object
506
+ /// [^1]: This is called "[Provenance](ptr/index.html#provenance)"
506
507
///
507
508
/// # Examples
508
509
///
You can’t perform that action at this time.
0 commit comments