Fix typo in docs for guaranteed_ne
This commit is contained in:
parent
542febd2d3
commit
cce46e9ae2
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue