]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/ptr/mut_ptr.rs
Rollup merge of #102721 - nbdd0121:panic, r=Amanieu
[rust.git] / library / core / src / ptr / mut_ptr.rs
index 0bb2566fd4c98b32f91b5afc9a19cf2e127a0b24..6764002bcd434e525fe8cc30d8f3a0f177107462 100644 (file)
@@ -730,7 +730,7 @@ pub const fn guaranteed_eq(self, other: *mut T) -> Option<bool>
 
     /// Returns whether two pointers are guaranteed to be inequal.
     ///
-    /// At runtime this function behaves like `Some(self == other)`.
+    /// At runtime this function behaves like `Some(self != other)`.
     /// However, in some contexts (e.g., compile-time evaluation),
     /// it is not always possible to determine inequality of two pointers, so this function may
     /// spuriously return `None` for pointers that later actually turn out to have its inequality known.