Skip to content

Commit 0ba8c14

Browse files
authored
doc: Remove a wrong information in core::ptr::eq<T>()
1 parent f280acf commit 0ba8c14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/ptr/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,8 +2031,7 @@ pub(crate) unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usize {
20312031
/// not anything that implements `PartialEq`.
20322032
///
20332033
/// This can be used to compare `&T` references (which coerce to `*const T` implicitly)
2034-
/// by their address rather than comparing the values they point to
2035-
/// (which is what the `PartialEq for &T` implementation does).
2034+
/// by their address rather than comparing the values they point to.
20362035
///
20372036
/// When comparing wide pointers, both the address and the metadata are tested for equality.
20382037
/// However, note that comparing trait object pointers (`*const dyn Trait`) is unreliable: pointers

0 commit comments

Comments
 (0)