@@ -352,7 +352,7 @@ impl<T: ?Sized> *const T {
352
352
///
353
353
/// * The computed offset, `count * size_of::<T>()` bytes, must not overflow `isize`.
354
354
///
355
- /// * If the computed offset is non-zero, then `self` must be derived from a pointer to some
355
+ /// * If the computed offset is non-zero, then `self` must be [ derived from][crate::ptr#provenance] a pointer to some
356
356
/// [allocated object], and the entire memory range between `self` and the result must be in
357
357
/// bounds of that allocated object. In particular, this range must not "wrap around" the edge
358
358
/// of the address space.
@@ -556,7 +556,7 @@ impl<T: ?Sized> *const T {
556
556
/// * `self` and `origin` must either
557
557
///
558
558
/// * point to the same address, or
559
- /// * both be * derived from* a pointer to the same [allocated object], and the memory range between
559
+ /// * both be [ derived from][crate::ptr#provenance] a pointer to the same [allocated object], and the memory range between
560
560
/// the two pointers must be in bounds of that object. (See below for an example.)
561
561
///
562
562
/// * The distance between the pointers, in bytes, must be an exact multiple
@@ -813,7 +813,7 @@ impl<T: ?Sized> *const T {
813
813
///
814
814
/// * The computed offset, `count * size_of::<T>()` bytes, must not overflow `isize`.
815
815
///
816
- /// * If the computed offset is non-zero, then `self` must be derived from a pointer to some
816
+ /// * If the computed offset is non-zero, then `self` must be [ derived from][crate::ptr#provenance] a pointer to some
817
817
/// [allocated object], and the entire memory range between `self` and the result must be in
818
818
/// bounds of that allocated object. In particular, this range must not "wrap around" the edge
819
819
/// of the address space.
@@ -887,7 +887,7 @@ impl<T: ?Sized> *const T {
887
887
///
888
888
/// * The computed offset, `count * size_of::<T>()` bytes, must not overflow `isize`.
889
889
///
890
- /// * If the computed offset is non-zero, then `self` must be derived from a pointer to some
890
+ /// * If the computed offset is non-zero, then `self` must be [ derived from][crate::ptr#provenance] a pointer to some
891
891
/// [allocated object], and the entire memory range between `self` and the result must be in
892
892
/// bounds of that allocated object. In particular, this range must not "wrap around" the edge
893
893
/// of the address space.
0 commit comments