Skip to content

Commit 301e457

Browse files
committed
Fix panic condition docs for Vec::insert.
Fixes #47065.
1 parent b65f0be commit 301e457

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)