From 2d6ab122b7fc4dc94912ec174082cd71c43ea557 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 28 Aug 2020 19:33:53 +0800 Subject: [PATCH 1/2] Liballoc extend use intra doc link --- library/alloc/src/vec.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index b4ad238680f79..b6c172b278e1a 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -1610,8 +1610,6 @@ impl Vec { /// vec.extend_from_slice(&[2, 3, 4]); /// assert_eq!(vec, [1, 2, 3, 4]); /// ``` - /// - /// [`extend`]: #method.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()) From c7e428e862384492460872300519bad19ad7c13d Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 29 Aug 2020 16:13:05 +0800 Subject: [PATCH 2/2] Liballoc vec doc use associated function Co-authored-by: Joshua Nelson --- library/alloc/src/vec.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index b6c172b278e1a..6fecd8299dcc0 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -1610,6 +1610,8 @@ impl Vec { /// 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())