about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-23 11:21:04 +0000
committerbors <bors@rust-lang.org>2022-03-23 11:21:04 +0000
commitc99b42cf14014987a147918fac2ad3d3290b257e (patch)
treee6ed66df009eb8f6d2c707f8e0922f8b00721306
parentcd2da4da379b060de7cb95e631e40e2227c1992b (diff)
parent0b81628abadf6592e9d8df6553da693963933e6c (diff)
downloadrust-c99b42cf14014987a147918fac2ad3d3290b257e.tar.gz
rust-c99b42cf14014987a147918fac2ad3d3290b257e.zip
Auto merge of #95235 - asquared31415:ptr_eq_typo, r=Dylan-DPC
Fix `core::ptr::guaranteed_eq` and `guaranteed_ne` docs typo
-rw-r--r--library/core/src/ptr/const_ptr.rs4
1 files 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 @@ impl<T: ?Sized> *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 @@ impl<T: ?Sized> *const T {
     ///
     /// [`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.