Skip to content

Commit e30480c

Browse files
Observer42Centril
Observer42
andauthored
Apply suggestions from code review
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent fa7a40c commit e30480c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/collections/binary_heap.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1163,9 +1163,9 @@ impl<T> FusedIterator for Drain<'_, T> {}
11631163

11641164
#[stable(feature = "binary_heap_extras_15", since = "1.5.0")]
11651165
impl<T: Ord> From<Vec<T>> for BinaryHeap<T> {
1166-
/// Converts a `Vec` into a `BinaryHeap`.
1166+
/// Converts a `Vec<T>` into a `BinaryHeap<T>`.
11671167
///
1168-
/// This conversion happens in-place, and has O(n) time complexity.
1168+
/// This conversion happens in-place, and has `O(n)` time complexity.
11691169
fn from(vec: Vec<T>) -> BinaryHeap<T> {
11701170
let mut heap = BinaryHeap { data: vec };
11711171
heap.rebuild();

0 commit comments

Comments
 (0)