diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 805d9a9807a..1bc9e6588ad 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -528,7 +528,7 @@ impl Vec { } /// Inserts an element at position `index` within the vector, shifting all - /// elements after position `i` one position to the right. + /// elements after it to the right. /// /// # Panics /// @@ -570,7 +570,7 @@ impl Vec { } /// Removes and returns the element at position `index` within the vector, - /// shifting all elements after position `index` one position to the left. + /// shifting all elements after it to the left. /// /// # Panics ///