From f021bf4c720095c58eb869ba34e25c6074535797 Mon Sep 17 00:00:00 2001 From: Zack Slayton Date: Tue, 5 Mar 2024 14:42:37 -0500 Subject: [PATCH] Updated comment --- src/collections/vec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collections/vec.rs b/src/collections/vec.rs index db75906..f77033c 100644 --- a/src/collections/vec.rs +++ b/src/collections/vec.rs @@ -1898,8 +1898,8 @@ impl<'bump, T: 'bump + Copy> Vec<'bump, T> { self.reserve(capacity_to_reserve); // SAFETY: - // * `dst` is valid for writes of `other.len()` items as `self.reserve(other.len())` - // above guarantees that. + // * `dst` is valid for writes of `capacity_to_reserve` items as + // `self.reserve(capacity_to_reserve)` above guarantees that. // * Source and destination ranges cannot overlap as we just reserved the destination // range from the bump. unsafe {