We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b429b0 commit 8125149Copy full SHA for 8125149
src/libcore/ptr.rs
@@ -2527,9 +2527,9 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
2527
/// println!("Hash is {:x}!", hasher.finish());
2528
/// ```
2529
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56285")]
2530
-pub fn hash<T, S: hash::Hasher>(a: &T, into: &mut S) {
+pub fn hash<T, S: hash::Hasher>(hashee: &T, into: &mut S) {
2531
use hash::Hash;
2532
- NonNull::from(a).hash(into)
+ NonNull::from(hashee).hash(into)
2533
}
2534
2535
// Impls for function pointers
0 commit comments