From 71a75cc2ce6d6eed2557e6c585e81abcdad86827 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 20 Jul 2014 17:57:29 -0700 Subject: Just land already --- src/libstd/collections/hashmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') 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, V, S, H: Hasher> HashMap { /// // 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); /// } -- cgit 1.4.1-3-g733a5