typo fix
This commit is contained in:
parent
81bd2675ea
commit
8443c1e3b0
@ -1213,7 +1213,7 @@ fn extend_with_element(&mut self, n: usize, value: T) {
|
||||
unsafe {
|
||||
let mut ptr = self.as_mut_ptr().offset(self.len() as isize);
|
||||
// Use SetLenOnDrop to work around bug where compiler
|
||||
// may not realize the store through `ptr` trough self.set_len()
|
||||
// may not realize the store through `ptr` through self.set_len()
|
||||
// don't alias.
|
||||
let mut local_len = SetLenOnDrop::new(&mut self.len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user