diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 3873b3535a07b..9e3f117f9b20e 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1213,7 +1213,7 @@ impl Vec { 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);