Skip to content
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/liballoc/collections/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ use super::SpecExtend;
/// trait, changes while it is in the heap. This is normally only possible
/// through `Cell`, `RefCell`, global state, I/O, or unsafe code.
///
/// The costs of `push` and `pop` and `peek` can be performed in `O(1)` time.
/// Note that these are non-amortized costs. The amortized cost for `push`
/// and `pop` are `O(log(N)` due to re-allocations and maintaining the heap property.
///
/// # Examples
///
/// ```
Expand Down