Skip to content

Commit 752f279

Browse files
committed
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.
1 parent 996f818 commit 752f279

File tree

1 file changed

+1
-1
lines changed
  • src/libcollections/btree

1 file changed

+1
-1
lines changed

src/libcollections/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
355355
/// let mut map = BTreeMap::new();
356356
///
357357
/// // entries can now be inserted into the empty map
358-
/// a.insert(1, "a");
358+
/// map.insert(1, "a");
359359
/// ```
360360
#[stable(feature = "rust1", since = "1.0.0")]
361361
pub fn new() -> BTreeMap<K, V> {

0 commit comments

Comments
 (0)