Rollup merge of #39784 - king6cong:master, r=GuillaumeGomez

typo fix
This commit is contained in:
Corey Farwell 2017-02-13 10:58:53 -05:00 committed by GitHub
commit 2a030bf6f1

View File

@ -1213,7 +1213,7 @@ impl<T: Clone> Vec<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);