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