From 8443c1e3b0676bc44f964275d19d15de5960c1a4 Mon Sep 17 00:00:00 2001 From: king6cong Date: Mon, 13 Feb 2017 18:41:45 +0800 Subject: [PATCH] typo fix --- src/libcollections/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 3873b3535a0..9e3f117f9b2 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);