about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDale Wijnand <dale.wijnand@gmail.com>2018-11-27 16:33:01 +0000
committerDale Wijnand <dale.wijnand@gmail.com>2018-11-27 16:33:01 +0000
commit81251491ddecb5c55b6d22b04abf33ef65d3a74b (patch)
tree358aa2a278c140d2f3b9c64549700d5cd9173e2b
parent7b429b0440eb7e8888ea600ca2103cb13999b3a2 (diff)
downloadrust-81251491ddecb5c55b6d22b04abf33ef65d3a74b.tar.gz
rust-81251491ddecb5c55b6d22b04abf33ef65d3a74b.zip
Pick a better variable name for ptr::hash
-rw-r--r--src/libcore/ptr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index 13aae988d6c..ff679d92e60 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -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