Skip to content

Commit 7ca93f8

Browse files
committed
ptr::guaranteed_eq doc typo
1 parent b7f7e50 commit 7ca93f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/ptr/const_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ impl<T: ?Sized> *const T {
464464
///
465465
/// [`guaranteed_ne`]: #method.guaranteed_ne
466466
///
467-
/// The return value may change depending on the compiler version and unsafe code might not
467+
/// The return value may change depending on the compiler version and unsafe code must not
468468
/// rely on the result of this function for soundness. It is suggested to only use this function
469469
/// for performance optimizations where spurious `false` return values by this function do not
470470
/// affect the outcome, but just the performance.
@@ -495,7 +495,7 @@ impl<T: ?Sized> *const T {
495495
///
496496
/// [`guaranteed_eq`]: #method.guaranteed_eq
497497
///
498-
/// The return value may change depending on the compiler version and unsafe code might not
498+
/// The return value may change depending on the compiler version and unsafe code must not
499499
/// rely on the result of this function for soundness. It is suggested to only use this function
500500
/// for performance optimizations where spurious `false` return values by this function do not
501501
/// affect the outcome, but just the performance.

0 commit comments

Comments
 (0)