Skip to content

Commit cc62db8

Browse files
committed
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.
2 parents 996f818 + 752f279 commit cc62db8

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)