diff --git a/src/libcollections/vec_map.rs b/src/libcollections/vec_map.rs index 6ff819fc87cdb..aa0ab41b7455b 100644 --- a/src/libcollections/vec_map.rs +++ b/src/libcollections/vec_map.rs @@ -367,7 +367,7 @@ impl VecMap { // Move all elements to other swap(self, &mut other); return other - } else if at > self.v.len() { + } else if at >= self.v.len() { // No elements to copy return other; }