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.
This commit is contained in:
parent
996f818105
commit
752f2796ba
@ -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> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user