about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorObserver42 <yishengxu47@gmail.com>2019-08-12 18:07:14 +0800
committerGitHub <noreply@github.com>2019-08-12 18:07:14 +0800
commite30480ca864c5810c89bbf1f475eb0bc2999c251 (patch)
treeab46c08dbb0c4388218a55b4e004dd1a1f882f33 /src/liballoc
parentfa7a40cc6ee7e16c948a804dbb487d36b3d0ccc9 (diff)
downloadrust-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.rs4
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();