Skip to content

Commit 3d04cb3

Browse files
committed
Note order of BinaryHeap::drain
Fixes #23564
1 parent ecf8c64 commit 3d04cb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcollections/binary_heap.rs

+2
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ impl<T: Ord> BinaryHeap<T> {
555555
pub fn is_empty(&self) -> bool { self.len() == 0 }
556556

557557
/// Clears the binary heap, returning an iterator over the removed elements.
558+
///
559+
/// The elements are removed in arbitrary order.
558560
#[inline]
559561
#[unstable(feature = "collections",
560562
reason = "matches collection reform specification, waiting for dust to settle")]

0 commit comments

Comments
 (0)