提交 b64df0b0 编写于 作者: D djzin

fix warnings in doctests

上级 b9956d4b
......@@ -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))
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册