Skip to content

Commit 4002618

Browse files
authored
Rollup merge of #47121 - frewsxcv:frewsxcv-vec, r=kennytm
Fix panic condition docs for Vec::insert. Fixes #47065.
2 parents 1809c14 + 301e457 commit 4002618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ impl<T> Vec<T> {
715715
///
716716
/// # Panics
717717
///
718-
/// Panics if `index` is out of bounds.
718+
/// Panics if `index > len`.
719719
///
720720
/// # Examples
721721
///

0 commit comments

Comments
 (0)