Skip to content

Commit f1f6db6

Browse files
committed
Rollup merge of rust-lang#31585 - tshepang:over-explanation, r=brson
…o read
2 parents a40f2b6 + 0352bdf commit f1f6db6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/vec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl<T> Vec<T> {
528528
}
529529

530530
/// Inserts an element at position `index` within the vector, shifting all
531-
/// elements after position `i` one position to the right.
531+
/// elements after it to the right.
532532
///
533533
/// # Panics
534534
///
@@ -570,7 +570,7 @@ impl<T> Vec<T> {
570570
}
571571

572572
/// Removes and returns the element at position `index` within the vector,
573-
/// shifting all elements after position `index` one position to the left.
573+
/// shifting all elements after it to the left.
574574
///
575575
/// # Panics
576576
///

0 commit comments

Comments
 (0)