about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-07-20 17:57:29 -0700
committerBrian Anderson <banderson@mozilla.com>2014-07-23 13:20:17 -0700
commit71a75cc2ce6d6eed2557e6c585e81abcdad86827 (patch)
treeac696d4f9367cd51ce22be670ca364894782740e /src/libstd
parent27e70c5d4946e07dc25b8fb86ecc379b8b3eeb5f (diff)
downloadrust-71a75cc2ce6d6eed2557e6c585e81abcdad86827.tar.gz
rust-71a75cc2ce6d6eed2557e6c585e81abcdad86827.zip
Just land already
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hashmap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hashmap.rs b/src/libstd/collections/hashmap.rs
index a05fad3705d..922858e963c 100644
--- a/src/libstd/collections/hashmap.rs
+++ b/src/libstd/collections/hashmap.rs
@@ -1291,7 +1291,7 @@ impl<K: Eq + Hash<S>, V, S, H: Hasher<S>> HashMap<K, V, H> {
     ///         // new value based on the first letter of the key.
     ///         |key, already, new| {
     ///             if key.as_slice().starts_with("z") {
-    ///                 already.unshift(new);
+    ///                 already.insert(0, new);
     ///             } else {
     ///                 already.push(new);
     ///             }