Skip to content

Commit f983a52

Browse files
committed
Reformat panic reasons into a list
1 parent d0c4a78 commit f983a52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,10 +3028,10 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
30283028
/// Copies elements from one part of the vector to the end.
30293029
/// `src` is the range that the elements will be copied from.
30303030
///
3031-
/// # Panics
3031+
/// # Panics if:
30323032
///
3033-
/// Panics if the starting index is greater than the end index.
3034-
/// Panics if the end index is greater than the length of the vector.
3033+
/// - Panics if the starting index is greater than the end index.
3034+
/// - Panics if the end index is greater than the length of the vector.
30353035
///
30363036
/// # Examples
30373037
///

0 commit comments

Comments
 (0)