Skip to content

Commit

Permalink
Liballoc vec doc use associated function
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Nelson <[email protected]>
  • Loading branch information
pickfire and Joshua Nelson authored Aug 29, 2020
1 parent 2d6ab12 commit c7e428e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/alloc/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,8 @@ impl<T: Clone> Vec<T> {
/// vec.extend_from_slice(&[2, 3, 4]);
/// assert_eq!(vec, [1, 2, 3, 4]);
/// ```
///
/// [`extend`]: Vec::extend
#[stable(feature = "vec_extend_from_slice", since = "1.6.0")]
pub fn extend_from_slice(&mut self, other: &[T]) {
self.spec_extend(other.iter())
Expand Down

0 comments on commit c7e428e

Please sign in to comment.