Rollup merge of #103580 - lukas-code:guaranteed_ne, r=GuillaumeGomez
Fix typo in docs for `guaranteed_ne` `==` -> `!=`
This commit is contained in:
commit
77145c042d
@ -802,7 +802,7 @@ impl<T: ?Sized> *const T {
|
|||||||
|
|
||||||
/// Returns whether two pointers are guaranteed to be inequal.
|
/// 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),
|
/// However, in some contexts (e.g., compile-time evaluation),
|
||||||
/// it is not always possible to determine inequality of two pointers, so this function may
|
/// 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.
|
/// spuriously return `None` for pointers that later actually turn out to have its inequality known.
|
||||||
|
@ -730,7 +730,7 @@ impl<T: ?Sized> *mut T {
|
|||||||
|
|
||||||
/// Returns whether two pointers are guaranteed to be inequal.
|
/// 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),
|
/// However, in some contexts (e.g., compile-time evaluation),
|
||||||
/// it is not always possible to determine inequality of two pointers, so this function may
|
/// 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.
|
/// spuriously return `None` for pointers that later actually turn out to have its inequality known.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user