Add missing # Panics section to Vec
method
namely `Vec::extend_from_within`
This commit is contained in:
parent
20997f6ad8
commit
ca88f10e39
1 changed files with 6 additions and 1 deletions
|
@ -2164,7 +2164,12 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
|
||||||
|
|
||||||
/// Copies elements from `src` range to the end of the vector.
|
/// Copies elements from `src` range to the end of the vector.
|
||||||
///
|
///
|
||||||
/// ## Examples
|
/// # Panics
|
||||||
|
///
|
||||||
|
/// Panics if the starting point is greater than the end point or if
|
||||||
|
/// the end point is greater than the length of the vector.
|
||||||
|
///
|
||||||
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// let mut vec = vec![0, 1, 2, 3, 4];
|
/// let mut vec = vec![0, 1, 2, 3, 4];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue