fix warnings in doctests
This commit is contained in:
parent
b9956d4bbe
commit
b64df0b0a8
@ -668,7 +668,7 @@ pub fn append(&mut self, other: &mut Self) {
|
|||||||
/// #![feature(btree_range, collections_bound)]
|
/// #![feature(btree_range, collections_bound)]
|
||||||
///
|
///
|
||||||
/// use std::collections::BTreeMap;
|
/// use std::collections::BTreeMap;
|
||||||
/// use std::collections::Bound::{Included, Unbounded};
|
/// use std::collections::Bound::Included;
|
||||||
///
|
///
|
||||||
/// let mut map = BTreeMap::new();
|
/// let mut map = BTreeMap::new();
|
||||||
/// map.insert(3, "a");
|
/// map.insert(3, "a");
|
||||||
@ -755,10 +755,9 @@ pub fn range<T: ?Sized, R>(&self, range: R) -> Range<K, V>
|
|||||||
/// Basic usage:
|
/// Basic usage:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(btree_range, collections_bound)]
|
/// #![feature(btree_range)]
|
||||||
///
|
///
|
||||||
/// use std::collections::BTreeMap;
|
/// use std::collections::BTreeMap;
|
||||||
/// use std::collections::Bound::{Included, Excluded};
|
|
||||||
///
|
///
|
||||||
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
|
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
|
||||||
/// .map(|&s| (s, 0))
|
/// .map(|&s| (s, 0))
|
||||||
|
@ -218,7 +218,7 @@ impl<T: Ord> BTreeSet<T> {
|
|||||||
/// #![feature(btree_range, collections_bound)]
|
/// #![feature(btree_range, collections_bound)]
|
||||||
///
|
///
|
||||||
/// use std::collections::BTreeSet;
|
/// use std::collections::BTreeSet;
|
||||||
/// use std::collections::Bound::{Included, Unbounded};
|
/// use std::collections::Bound::Included;
|
||||||
///
|
///
|
||||||
/// let mut set = BTreeSet::new();
|
/// let mut set = BTreeSet::new();
|
||||||
/// set.insert(3);
|
/// set.insert(3);
|
||||||
|
Loading…
Reference in New Issue
Block a user