mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Fix typo in docs for guaranteed_ne
This commit is contained in:
parent
542febd2d3
commit
cce46e9ae2
@ -802,7 +802,7 @@ impl<T: ?Sized> *const T {
|
||||
|
||||
/// 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.
|
||||
|
@ -726,7 +726,7 @@ impl<T: ?Sized> *mut T {
|
||||
|
||||
/// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user