about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-09 16:21:32 -0800
committerbors <bors@rust-lang.org>2016-03-09 16:21:32 -0800
commitcc62db802f9cb19606d3bfa4c4df0d0bc438543b (patch)
tree8885d73c8f39d28580a56da7d49124196046cd09
parent996f8181057653ba755264ad9112d73c2235c3a3 (diff)
parent752f2796ba3476678c93f96acf54ae4d00e76c58 (diff)
downloadrust-cc62db802f9cb19606d3bfa4c4df0d0bc438543b.tar.gz
rust-cc62db802f9cb19606d3bfa4c4df0d0bc438543b.zip
Auto merge of #32165 - alexcrichton:fix-broken-master, r=alexcrichton
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.
-rw-r--r--src/libcollections/btree/map.rs2
1 files changed, 1 insertions, 1 deletions
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<K: Ord, V> BTreeMap<K, V> {
     /// 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<K, V> {