Fix the just-introduced ptr::hash docs
This commit is contained in:
parent
f504d3f059
commit
1ac066ef04
1 changed files with 5 additions and 2 deletions
|
@ -2516,8 +2516,11 @@ pub fn eq<T: ?Sized>(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 coerce to `*const T` implicitly)
|
||||
/// by its address rather than the value it points to
|
||||
/// (which is what the `Hash for &T` implementation does).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue