Remove redundant example of BTreeSet::iter
This commit is contained in:
parent
a28e125b21
commit
5a6400b8b0
1 changed files with 0 additions and 13 deletions
|
@ -1124,19 +1124,6 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
|
|||
/// ```
|
||||
/// use std::collections::BTreeSet;
|
||||
///
|
||||
/// let set = BTreeSet::from([1, 2, 3]);
|
||||
/// let mut set_iter = set.iter();
|
||||
/// assert_eq!(set_iter.next(), Some(&1));
|
||||
/// assert_eq!(set_iter.next(), Some(&2));
|
||||
/// assert_eq!(set_iter.next(), Some(&3));
|
||||
/// assert_eq!(set_iter.next(), None);
|
||||
/// ```
|
||||
///
|
||||
/// Values returned by the iterator are returned in ascending order:
|
||||
///
|
||||
/// ```
|
||||
/// use std::collections::BTreeSet;
|
||||
///
|
||||
/// let set = BTreeSet::from([3, 1, 2]);
|
||||
/// let mut set_iter = set.iter();
|
||||
/// assert_eq!(set_iter.next(), Some(&1));
|
||||
|
|
Loading…
Add table
Reference in a new issue