We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb878d commit 2ad52cdCopy full SHA for 2ad52cd
src/liballoc/vec.rs
@@ -1472,8 +1472,9 @@ impl<T: Clone> Vec<T> {
1472
/// difference, with each additional slot filled with `value`.
1473
/// If `new_len` is less than `len`, the `Vec` is simply truncated.
1474
///
1475
- /// This method requires [`Clone`] to be able clone the passed value. If
1476
- /// you need more flexibility (or want to rely on [`Default`] instead of
+ /// This method requires `value` to implement [`Clone`],
+ /// in order to be able to clone the passed value.
1477
+ /// If you need more flexibility (or want to rely on [`Default`] instead of
1478
/// [`Clone`]), use [`resize_with`].
1479
1480
/// # Examples
0 commit comments