Liballoc vec doc use associated function

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Ivan Tham 2020-08-29 16:13:05 +08:00 committed by GitHub
parent 2d6ab122b7
commit c7e428e862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())