diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 29987ac44e6..bcbf931d162 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1472,8 +1472,9 @@ impl Vec { /// difference, with each additional slot filled with `value`. /// If `new_len` is less than `len`, the `Vec` is simply truncated. /// - /// This method requires [`Clone`] to be able clone the passed value. If - /// 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. + /// If you need more flexibility (or want to rely on [`Default`] instead of /// [`Clone`]), use [`resize_with`]. /// /// # Examples