Update src/liballoc/vec.rs

Following suggestion from @jonas-schievink

Co-Authored-By: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
Youngsuk Kim 2020-02-29 00:52:32 -05:00 committed by GitHub
parent 2ad52cd16d
commit fb46d2b82e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1472,7 +1472,7 @@ impl<T: Clone> Vec<T> {
/// difference, with each additional slot filled with `value`.
/// If `new_len` is less than `len`, the `Vec` is simply truncated.
///
/// This method requires `value` to implement [`Clone`],
/// 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`].