diff options
| author | bors <bors@rust-lang.org> | 2014-05-01 16:06:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-01 16:06:48 -0700 |
| commit | 9f836d5a53e20fde65aa3469fa1826228e7c273a (patch) | |
| tree | 01a0c192a4dabd1ebb17f3d3da8662701d43c6f4 /src/libstd/hash | |
| parent | fb72d7cfea9ba44581f708b13aa82ab23ee4fa7e (diff) | |
| parent | e93cb04c4b011088d3b13a17bdf4cb865730dd38 (diff) | |
| download | rust-9f836d5a53e20fde65aa3469fa1826228e7c273a.tar.gz rust-9f836d5a53e20fde65aa3469fa1826228e7c273a.zip | |
auto merge of #13877 : thestinger/rust/de-tilde-str-vec, r=alexcrichton
Diffstat (limited to 'src/libstd/hash')
| -rw-r--r-- | src/libstd/hash/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/hash/mod.rs b/src/libstd/hash/mod.rs index ffb41e9781b..e8ca4037f57 100644 --- a/src/libstd/hash/mod.rs +++ b/src/libstd/hash/mod.rs @@ -343,7 +343,7 @@ mod tests { assert_eq!(hasher.hash(&'a'), 97); - assert_eq!(hasher.hash(& &"a"), 97 + 0xFF); + assert_eq!(hasher.hash(&("a")), 97 + 0xFF); assert_eq!(hasher.hash(& &[1u8, 2u8, 3u8]), 9); unsafe { |
