Skip to content

Commit

Permalink
Rollup merge of rust-lang#76069 - pickfire:patch-16, r=jyn514
Browse files Browse the repository at this point in the history
Use explicit intra-doc link in path for Vec resize

r? @jyn514
  • Loading branch information
matklad authored Aug 31, 2020
2 parents d829a5b + 237c500 commit 13c4f04
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 @@ -1566,7 +1566,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 @@ -1579,8 +1579,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 13c4f04

Please sign in to comment.