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