about summary refs log tree commit diff
path: root/library/alloc/src/collections
diff options
context:
space:
mode:
authortimvisee <tim@visee.me>2024-11-28 09:46:26 +0100
committertimvisee <tim@visee.me>2024-11-28 09:47:11 +0100
commit89b20e95fd6cb6e976692505ca4ee74e2df3f028 (patch)
tree163a6b1368348020826a11acf9840e2241a747ca /library/alloc/src/collections
parent74cf503341d77f2f3e550f6e6b9b527c34d25e71 (diff)
Also use zero when referencing to capacity or length
Diffstat (limited to 'library/alloc/src/collections')
-rw-r--r--library/alloc/src/collections/binary_heap/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/collections/binary_heap/mod.rs b/library/alloc/src/collections/binary_heap/mod.rs
index 59f10b09c73..0bc65cdbc55 100644
--- a/library/alloc/src/collections/binary_heap/mod.rs
+++ b/library/alloc/src/collections/binary_heap/mod.rs
@@ -452,7 +452,7 @@ impl<T: Ord> BinaryHeap<T> {
     ///
     /// The binary heap will be able to hold at least `capacity` elements without
     /// reallocating. This method is allowed to allocate for more elements than
-    /// `capacity`. If `capacity` is 0, the binary heap will not allocate.
+    /// `capacity`. If `capacity` is zero, the binary heap will not allocate.
     ///
     /// # Examples
     ///
@@ -496,7 +496,7 @@ impl<T: Ord, A: Allocator> BinaryHeap<T, A> {
     ///
     /// The binary heap will be able to hold at least `capacity` elements without
     /// reallocating. This method is allowed to allocate for more elements than
-    /// `capacity`. If `capacity` is 0, the binary heap will not allocate.
+    /// `capacity`. If `capacity` is zero, the binary heap will not allocate.
     ///
     /// # Examples
     ///