From 0b81628abadf6592e9d8df6553da693963933e6c Mon Sep 17 00:00:00 2001 From: asquared31415 <34665709+asquared31415@users.noreply.github.com> Date: Wed, 23 Mar 2022 04:21:50 -0400 Subject: [PATCH] ptr::guaranteed_eq doc typo --- library/core/src/ptr/const_ptr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 75322066983..19953afb4fe 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -464,7 +464,7 @@ pub const fn wrapping_offset(self, count: isize) -> *const T /// /// [`guaranteed_ne`]: #method.guaranteed_ne /// - /// The return value may change depending on the compiler version and unsafe code might not + /// The return value may change depending on the compiler version and unsafe code must not /// rely on the result of this function for soundness. It is suggested to only use this function /// for performance optimizations where spurious `false` return values by this function do not /// affect the outcome, but just the performance. @@ -495,7 +495,7 @@ pub const fn guaranteed_eq(self, other: *const T) -> bool /// /// [`guaranteed_eq`]: #method.guaranteed_eq /// - /// The return value may change depending on the compiler version and unsafe code might not + /// The return value may change depending on the compiler version and unsafe code must not /// rely on the result of this function for soundness. It is suggested to only use this function /// for performance optimizations where spurious `false` return values by this function do not /// affect the outcome, but just the performance.