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:
Alex Crichton 2016-03-09 16:20:32 -08:00
parent 996f818105
commit 752f2796ba

View File

@ -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> {