We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa7a40c commit e30480cCopy full SHA for e30480c
src/liballoc/collections/binary_heap.rs
@@ -1163,9 +1163,9 @@ impl<T> FusedIterator for Drain<'_, T> {}
1163
1164
#[stable(feature = "binary_heap_extras_15", since = "1.5.0")]
1165
impl<T: Ord> From<Vec<T>> for BinaryHeap<T> {
1166
- /// Converts a `Vec` into a `BinaryHeap`.
+ /// Converts a `Vec<T>` into a `BinaryHeap<T>`.
1167
///
1168
- /// This conversion happens in-place, and has O(n) time complexity.
+ /// This conversion happens in-place, and has `O(n)` time complexity.
1169
fn from(vec: Vec<T>) -> BinaryHeap<T> {
1170
let mut heap = BinaryHeap { data: vec };
1171
heap.rebuild();
0 commit comments