@@ -244,7 +244,7 @@ impl<T: ?Sized> *const T {
244
244
///
245
245
/// This operation itself is always safe, but using the resulting pointer is not.
246
246
///
247
- /// The resulting pointer "remembers" the [allocated object] that `self` points to; it may not
247
+ /// The resulting pointer "remembers" the [allocated object] that `self` points to; it must not
248
248
/// be used to read or write other allocated objects.
249
249
///
250
250
/// In other words, `let z = x.wrapping_offset((y as isize) - (x as isize))` does *not* make `z`
@@ -404,7 +404,7 @@ impl<T: ?Sized> *const T {
404
404
///
405
405
/// [`guaranteed_ne`]: #method.guaranteed_ne
406
406
///
407
- /// The return value may change depending on the compiler version and unsafe code may not
407
+ /// The return value may change depending on the compiler version and unsafe code might not
408
408
/// rely on the result of this function for soundness. It is suggested to only use this function
409
409
/// for performance optimizations where spurious `false` return values by this function do not
410
410
/// affect the outcome, but just the performance.
@@ -435,7 +435,7 @@ impl<T: ?Sized> *const T {
435
435
///
436
436
/// [`guaranteed_eq`]: #method.guaranteed_eq
437
437
///
438
- /// The return value may change depending on the compiler version and unsafe code may not
438
+ /// The return value may change depending on the compiler version and unsafe code might not
439
439
/// rely on the result of this function for soundness. It is suggested to only use this function
440
440
/// for performance optimizations where spurious `false` return values by this function do not
441
441
/// affect the outcome, but just the performance.
@@ -590,7 +590,7 @@ impl<T: ?Sized> *const T {
590
590
///
591
591
/// This operation itself is always safe, but using the resulting pointer is not.
592
592
///
593
- /// The resulting pointer "remembers" the [allocated object] that `self` points to; it may not
593
+ /// The resulting pointer "remembers" the [allocated object] that `self` points to; it must not
594
594
/// be used to read or write other allocated objects.
595
595
///
596
596
/// In other words, `let z = x.wrapping_add((y as usize) - (x as usize))` does *not* make `z`
@@ -652,7 +652,7 @@ impl<T: ?Sized> *const T {
652
652
///
653
653
/// This operation itself is always safe, but using the resulting pointer is not.
654
654
///
655
- /// The resulting pointer "remembers" the [allocated object] that `self` points to; it may not
655
+ /// The resulting pointer "remembers" the [allocated object] that `self` points to; it must not
656
656
/// be used to read or write other allocated objects.
657
657
///
658
658
/// In other words, `let z = x.wrapping_sub((x as usize) - (y as usize))` does *not* make `z`
0 commit comments