Liballoc vec doc use associated function
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
parent
2d6ab122b7
commit
c7e428e862
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user