From 752f2796ba3476678c93f96acf54ae4d00e76c58 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 9 Mar 2016 16:20:32 -0800 Subject: [PATCH] collections: Fix broken doc example PR #32135 was accidentally merged without tests passing, and unfortunately one of the tests added was broken, so this fixes that. --- src/libcollections/btree/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs index 47518d8b33d..1967f83ab27 100644 --- a/src/libcollections/btree/map.rs +++ b/src/libcollections/btree/map.rs @@ -355,7 +355,7 @@ impl BTreeMap { /// let mut map = BTreeMap::new(); /// /// // entries can now be inserted into the empty map - /// a.insert(1, "a"); + /// map.insert(1, "a"); /// ``` #[stable(feature = "rust1", since = "1.0.0")] pub fn new() -> BTreeMap {