about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorShaun Steenkamp <theguywholikeslinux@gmail.com>2018-02-13 17:15:58 +0000
committerShaun Steenkamp <theguywholikeslinux@gmail.com>2018-02-13 17:15:58 +0000
commitf3330cea7f43288362fec9b010b04e22dfbf45a2 (patch)
tree748df2d0b40445ec6fa74ed197bad846bf5bf07c /src/libstd
parent94c3c84b6a9c382862b1f750f782c33256fa58bd (diff)
downloadrust-f3330cea7f43288362fec9b010b04e22dfbf45a2.tar.gz
rust-f3330cea7f43288362fec9b010b04e22dfbf45a2.zip
38880 fix incorrect negation
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index fdc62be3dd9..a8f419d6c6c 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -564,7 +564,7 @@ impl<K, V, S> HashMap<K, V, S>
         where K: Borrow<Q>,
               Q: Eq + Hash
     {
-        if !self.is_empty() {
+        if self.is_empty() {
             return None;
         }