Skip to content

Commit 13c4f04

Browse files
authored
Rollup merge of #76069 - pickfire:patch-16, r=jyn514
Use explicit intra-doc link in path for Vec resize r? @jyn514
2 parents d829a5b + 237c500 commit 13c4f04

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/alloc/src/vec.rs

+1-3
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)