Skip to content

Commit 950f121

Browse files
Update library/alloc/src/vec/mod.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent a1835bc commit 950f121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ impl<T, A: Allocator> Vec<T, A> {
19501950

19511951
// SAFETY:
19521952
// - `ptr` is guaranteed to be valid for `len` elements
1953-
// - `spare_ptr` is pointing one element past the buffer, so it doesn't overlap with `initialized` slice
1953+
// - `spare_ptr` is pointing one element past the buffer, so it doesn't overlap with `initialized`
19541954
unsafe {
19551955
let initialized = slice::from_raw_parts_mut(ptr, self.len);
19561956
let spare = slice::from_raw_parts_mut(spare_ptr, spare_len);

0 commit comments

Comments
 (0)