diff options
| author | Observer42 <yishengxu47@gmail.com> | 2019-08-12 18:07:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-12 18:07:14 +0800 |
| commit | e30480ca864c5810c89bbf1f475eb0bc2999c251 (patch) | |
| tree | ab46c08dbb0c4388218a55b4e004dd1a1f882f33 /src/liballoc | |
| parent | fa7a40cc6ee7e16c948a804dbb487d36b3d0ccc9 (diff) | |
| download | rust-e30480ca864c5810c89bbf1f475eb0bc2999c251.tar.gz rust-e30480ca864c5810c89bbf1f475eb0bc2999c251.zip | |
Apply suggestions from code review
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/collections/binary_heap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/collections/binary_heap.rs b/src/liballoc/collections/binary_heap.rs index cc6c69d5738..3d04f30e7bd 100644 --- a/src/liballoc/collections/binary_heap.rs +++ b/src/liballoc/collections/binary_heap.rs @@ -1163,9 +1163,9 @@ impl<T> FusedIterator for Drain<'_, T> {} #[stable(feature = "binary_heap_extras_15", since = "1.5.0")] impl<T: Ord> From<Vec<T>> for BinaryHeap<T> { - /// Converts a `Vec` into a `BinaryHeap`. + /// Converts a `Vec<T>` into a `BinaryHeap<T>`. /// - /// This conversion happens in-place, and has O(n) time complexity. + /// This conversion happens in-place, and has `O(n)` time complexity. fn from(vec: Vec<T>) -> BinaryHeap<T> { let mut heap = BinaryHeap { data: vec }; heap.rebuild(); |
