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 @@ -1566,7 +1566,7 @@ impl<T: Clone> Vec<T> {
15661566 /// This method requires `T` to implement [`Clone`],
15671567 /// in order to be able to clone the passed value.
15681568 /// If you need more flexibility (or want to rely on [`Default`] instead of
1569- /// [`Clone`]), use [`resize_with`].
1569+ /// [`Clone`]), use [`Vec:: resize_with`].
15701570 ///
15711571 /// # Examples
15721572 ///
@@ -1579,8 +1579,6 @@ impl<T: Clone> Vec<T> {
15791579 /// vec.resize(2, 0);
15801580 /// assert_eq!(vec, [1, 2]);
15811581 /// ```
1582- ///
1583- /// [`resize_with`]: Vec::resize_with
15841582 #[ stable( feature = "vec_resize" , since = "1.5.0" ) ]
15851583 pub fn resize ( & mut self , new_len : usize , value : T ) {
15861584 let len = self . len ( ) ;
You can’t perform that action at this time.
0 commit comments