Skip to content

Commit beb0c22

Browse files
committed
document into_iter in top level docs iterator ordering guarantees
1 parent f8a093c commit beb0c22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/alloc/src/collections/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT;
7272
/// `BTreeMap` that observed the logic error and not result in undefined behavior. This could
7373
/// include panics, incorrect results, aborts, memory leaks, and non-termination.
7474
///
75-
/// Iterators obtained from functions such as [`BTreeMap::iter`], [`BTreeMap::values`], or
75+
/// Iterators obtained from functions such as [`BTreeMap::iter`], [`BTreeMap::into_iter`], [`BTreeMap::values`], or
7676
/// [`BTreeMap::keys`] produce their items in order by key, and take worst-case logarithmic and
7777
/// amortized constant time per item returned.
7878
///

library/alloc/src/collections/btree/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::alloc::{Allocator, Global};
2727
/// `BTreeSet` that observed the logic error and not result in undefined behavior. This could
2828
/// include panics, incorrect results, aborts, memory leaks, and non-termination.
2929
///
30-
/// Iterators returned by [`BTreeSet::iter`] produce their items in order, and take worst-case
30+
/// Iterators returned by [`BTreeSet::iter`] and [`BTreeSet::into_iter`] produce their items in order, and take worst-case
3131
/// logarithmic and amortized constant time per item returned.
3232
///
3333
/// [`Cell`]: core::cell::Cell

0 commit comments

Comments
 (0)