File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1567,7 +1567,7 @@ impl<T: Clone> Vec<T> {
15671567 /// This method requires `T` to implement [`Clone`],
15681568 /// in order to be able to clone the passed value.
15691569 /// If you need more flexibility (or want to rely on [`Default`] instead of
1570- /// [`Clone`]), use [`resize_with`].
1570+ /// [`Clone`]), use [`Vec:: resize_with`].
15711571 ///
15721572 /// # Examples
15731573 ///
@@ -1580,8 +1580,6 @@ impl<T: Clone> Vec<T> {
15801580 /// vec.resize(2, 0);
15811581 /// assert_eq!(vec, [1, 2]);
15821582 /// ```
1583- ///
1584- /// [`resize_with`]: Vec::resize_with
15851583 #[ stable( feature = "vec_resize" , since = "1.5.0" ) ]
15861584 pub fn resize ( & mut self , new_len : usize , value : T ) {
15871585 let len = self . len ( ) ;
You can’t perform that action at this time.
0 commit comments