@@ -416,8 +416,8 @@ impl<T: ?Sized> *const T {
416
416
/// If any of the following conditions are violated, the result is Undefined
417
417
/// Behavior:
418
418
///
419
- /// * Both the starting and resulting pointer must be either in bounds or one
420
- /// byte past the end of the same [allocated object].
419
+ /// * If the computed offset is non-zero, then both the starting and resulting pointer must be
420
+ /// either in bounds or one byte past the end of the same [allocated object].
421
421
///
422
422
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
423
423
///
@@ -891,8 +891,8 @@ impl<T: ?Sized> *const T {
891
891
/// If any of the following conditions are violated, the result is Undefined
892
892
/// Behavior:
893
893
///
894
- /// * Both the starting and resulting pointer must be either in bounds or one
895
- /// byte past the end of the same [allocated object].
894
+ /// * If the computed offset is non-zero, then both the starting and resulting pointer must be
895
+ /// either in bounds or one byte past the end of the same [allocated object].
896
896
///
897
897
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
898
898
///
@@ -975,8 +975,8 @@ impl<T: ?Sized> *const T {
975
975
/// If any of the following conditions are violated, the result is Undefined
976
976
/// Behavior:
977
977
///
978
- /// * Both the starting and resulting pointer must be either in bounds or one
979
- /// byte past the end of the same [allocated object].
978
+ /// * If the computed offset is non-zero, then both the starting and resulting pointer must be
979
+ /// either in bounds or one byte past the end of the same [allocated object].
980
980
///
981
981
/// * The computed offset cannot exceed `isize::MAX` **bytes**.
982
982
///
0 commit comments