Pick a better variable name for ptr::hash
This commit is contained in:
parent
7b429b0440
commit
81251491dd
1 changed files with 2 additions and 2 deletions
|
@ -2527,9 +2527,9 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
|
|||
/// println!("Hash is {:x}!", hasher.finish());
|
||||
/// ```
|
||||
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56285")]
|
||||
pub fn hash<T, S: hash::Hasher>(a: &T, into: &mut S) {
|
||||
pub fn hash<T, S: hash::Hasher>(hashee: &T, into: &mut S) {
|
||||
use hash::Hash;
|
||||
NonNull::from(a).hash(into)
|
||||
NonNull::from(hashee).hash(into)
|
||||
}
|
||||
|
||||
// Impls for function pointers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue