Auto merge of #95235 - asquared31415:ptr_eq_typo, r=Dylan-DPC
Fix `core::ptr::guaranteed_eq` and `guaranteed_ne` docs typo
This commit is contained in:
commit
c99b42cf14
@ -464,7 +464,7 @@ pub const fn wrapping_offset(self, count: isize) -> *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 @@ pub const fn guaranteed_eq(self, other: *const T) -> bool
|
||||
///
|
||||
/// [`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.
|
||||
|
Loading…
Reference in New Issue
Block a user