Skip to content

Commit

Permalink
Use explicit intra-doc link in path for Vec resize
Browse files Browse the repository at this point in the history
  • Loading branch information
pickfire authored Aug 29, 2020
1 parent 65d071e commit 237c500
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/alloc/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ impl<T: Clone> Vec<T> {
/// This method requires `T` to implement [`Clone`],
/// in order to be able to clone the passed value.
/// If you need more flexibility (or want to rely on [`Default`] instead of
/// [`Clone`]), use [`resize_with`].
/// [`Clone`]), use [`Vec::resize_with`].
///
/// # Examples
///
Expand All @@ -1580,8 +1580,6 @@ impl<T: Clone> Vec<T> {
/// vec.resize(2, 0);
/// assert_eq!(vec, [1, 2]);
/// ```
///
/// [`resize_with`]: Vec::resize_with
#[stable(feature = "vec_resize", since = "1.5.0")]
pub fn resize(&mut self, new_len: usize, value: T) {
let len = self.len();
Expand Down

0 comments on commit 237c500

Please sign in to comment.