Skip to content

Commit 2e72079

Browse files
committed
document that ptr cmp is unsigned
1 parent 7f36543 commit 2e72079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ impl<T: ?Sized> PartialEq for *const T {
16941694
#[stable(feature = "rust1", since = "1.0.0")]
16951695
impl<T: ?Sized> Eq for *const T {}
16961696

1697-
// Comparison for pointers
1697+
/// Pointers are compared as if they are usize
16981698
#[stable(feature = "rust1", since = "1.0.0")]
16991699
impl<T: ?Sized> Ord for *const T {
17001700
#[inline]

0 commit comments

Comments
 (0)