Rollup merge of #76069 - pickfire:patch-16, r=jyn514

Use explicit intra-doc link in path for Vec resize

r? @jyn514
This commit is contained in:
Aleksey Kladov 2020-08-31 12:51:53 +02:00 committed by GitHub
commit 13c4f04561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
///
@ -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();