Update src/liballoc/vec.rs
Following suggestion from @jonas-schievink Co-Authored-By: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
parent
2ad52cd16d
commit
fb46d2b82e
1 changed files with 1 additions and 1 deletions
|
|
@ -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`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue