Skip to content

Commit 5e66ba7

Browse files
authored
Rollup merge of #88370 - Seppel3210:master, r=dtolnay
Add missing `# Panics` section to `Vec` method namely `Vec::extend_from_within`
2 parents 70d82e0 + ca88f10 commit 5e66ba7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/alloc/src/vec/mod.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,12 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
21882188

21892189
/// Copies elements from `src` range to the end of the vector.
21902190
///
2191-
/// ## Examples
2191+
/// # Panics
2192+
///
2193+
/// Panics if the starting point is greater than the end point or if
2194+
/// the end point is greater than the length of the vector.
2195+
///
2196+
/// # Examples
21922197
///
21932198
/// ```
21942199
/// let mut vec = vec![0, 1, 2, 3, 4];

0 commit comments

Comments
 (0)