diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 0cc0108fd0116..c4921cb8560bd 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1213,7 +1213,7 @@ impl Vec { // Duplicate, advance r. End of vec. Truncate to w. let ln = self.len(); - if ln < 1 { return; } + if ln <= 1 { return; } // Avoid bounds checks by using unsafe pointers. let p = self.as_mut_ptr();