about summary refs log tree commit diff
diff options
context:
space:
mode:
-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> {