Note order of BinaryHeap::drain

Fixes #23564
This commit is contained in:
Steve Klabnik 2015-03-22 15:21:29 -04:00
parent ecf8c64e1b
commit 3d04cb3688

View file

@ -555,6 +555,8 @@ impl<T: Ord> BinaryHeap<T> {
pub fn is_empty(&self) -> bool { self.len() == 0 }
/// Clears the binary heap, returning an iterator over the removed elements.
///
/// The elements are removed in arbitrary order.
#[inline]
#[unstable(feature = "collections",
reason = "matches collection reform specification, waiting for dust to settle")]