diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index a2d32e9d68fb5..b11ae30327226 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2516,8 +2516,11 @@ pub fn eq(a: *const T, b: *const T) -> bool { a == b } -/// Hash the raw pointer address behind a reference, rather than the value -/// it points to. +/// Hash a raw pointer. +/// +/// This can be used to hash a `&T` reference (which coerces to `*const T` implicitly) +/// by its address rather than the value it points to +/// (which is what the `Hash for &T` implementation does). /// /// # Examples ///