Skip to content

Commit 237c500

Browse files
authored
Use explicit intra-doc link in path for Vec resize
1 parent 65d071e commit 237c500

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
@@ -1567,7 +1567,7 @@ impl<T: Clone> Vec<T> {
15671567
/// This method requires `T` to implement [`Clone`],
15681568
/// in order to be able to clone the passed value.
15691569
/// If you need more flexibility (or want to rely on [`Default`] instead of
1570-
/// [`Clone`]), use [`resize_with`].
1570+
/// [`Clone`]), use [`Vec::resize_with`].
15711571
///
15721572
/// # Examples
15731573
///
@@ -1580,8 +1580,6 @@ impl<T: Clone> Vec<T> {
15801580
/// vec.resize(2, 0);
15811581
/// assert_eq!(vec, [1, 2]);
15821582
/// ```
1583-
///
1584-
/// [`resize_with`]: Vec::resize_with
15851583
#[stable(feature = "vec_resize", since = "1.5.0")]
15861584
pub fn resize(&mut self, new_len: usize, value: T) {
15871585
let len = self.len();

0 commit comments

Comments
 (0)