Skip to content

Commit 8125149

Browse files
committed
Pick a better variable name for ptr::hash
1 parent 7b429b0 commit 8125149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,9 +2527,9 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
25272527
/// println!("Hash is {:x}!", hasher.finish());
25282528
/// ```
25292529
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56285")]
2530-
pub fn hash<T, S: hash::Hasher>(a: &T, into: &mut S) {
2530+
pub fn hash<T, S: hash::Hasher>(hashee: &T, into: &mut S) {
25312531
use hash::Hash;
2532-
NonNull::from(a).hash(into)
2532+
NonNull::from(hashee).hash(into)
25332533
}
25342534

25352535
// Impls for function pointers

0 commit comments

Comments
 (0)