Skip to content

Commit

Permalink
Auto merge of #95235 - asquared31415:ptr_eq_typo, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fix `core::ptr::guaranteed_eq` and `guaranteed_ne` docs typo
  • Loading branch information
bors committed Mar 23, 2022
2 parents cd2da4d + 0b81628 commit c99b42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/ptr/const_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ impl<T: ?Sized> *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.
Expand Down Expand Up @@ -495,7 +495,7 @@ impl<T: ?Sized> *const T {
///
/// [`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.
Expand Down

0 comments on commit c99b42c

Please sign in to comment.