Skip to content

Commit

Permalink
Updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Mar 5, 2024
1 parent ba6bba2 commit f021bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collections/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f021bf4

Please sign in to comment.