We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a91ff1c commit 0352bdfCopy full SHA for 0352bdf
src/libcollections/vec.rs
@@ -528,7 +528,7 @@ impl<T> Vec<T> {
528
}
529
530
/// Inserts an element at position `index` within the vector, shifting all
531
- /// elements after position `i` one position to the right.
+ /// elements after it to the right.
532
///
533
/// # Panics
534
@@ -570,7 +570,7 @@ impl<T> Vec<T> {
570
571
572
/// Removes and returns the element at position `index` within the vector,
573
- /// shifting all elements after position `index` one position to the left.
+ /// shifting all elements after it to the left.
574
575
576
0 commit comments