fix warnings in doctests

This commit is contained in:
djzin 2016-12-27 15:27:18 +00:00
parent b9956d4bbe
commit b64df0b0a8
2 changed files with 3 additions and 4 deletions

View File

@ -668,7 +668,7 @@ pub fn append(&mut self, other: &mut Self) {
/// #![feature(btree_range, collections_bound)]
///
/// use std::collections::BTreeMap;
/// use std::collections::Bound::{Included, Unbounded};
/// use std::collections::Bound::Included;
///
/// let mut map = BTreeMap::new();
/// map.insert(3, "a");
@ -755,10 +755,9 @@ pub fn range<T: ?Sized, R>(&self, range: R) -> Range<K, V>
/// Basic usage:
///
/// ```
/// #![feature(btree_range, collections_bound)]
/// #![feature(btree_range)]
///
/// use std::collections::BTreeMap;
/// use std::collections::Bound::{Included, Excluded};
///
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
/// .map(|&s| (s, 0))

View File

@ -218,7 +218,7 @@ impl<T: Ord> BTreeSet<T> {
/// #![feature(btree_range, collections_bound)]
///
/// use std::collections::BTreeSet;
/// use std::collections::Bound::{Included, Unbounded};
/// use std::collections::Bound::Included;
///
/// let mut set = BTreeSet::new();
/// set.insert(3);