We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d829a5b + 237c500 commit 13c4f04Copy full SHA for 13c4f04
library/alloc/src/vec.rs
@@ -1566,7 +1566,7 @@ impl<T: Clone> Vec<T> {
1566
/// This method requires `T` to implement [`Clone`],
1567
/// in order to be able to clone the passed value.
1568
/// If you need more flexibility (or want to rely on [`Default`] instead of
1569
- /// [`Clone`]), use [`resize_with`].
+ /// [`Clone`]), use [`Vec::resize_with`].
1570
///
1571
/// # Examples
1572
@@ -1579,8 +1579,6 @@ impl<T: Clone> Vec<T> {
1579
/// vec.resize(2, 0);
1580
/// assert_eq!(vec, [1, 2]);
1581
/// ```
1582
- ///
1583
- /// [`resize_with`]: Vec::resize_with
1584
#[stable(feature = "vec_resize", since = "1.5.0")]
1585
pub fn resize(&mut self, new_len: usize, value: T) {
1586
let len = self.len();
0 commit comments