Skip to content

Commit fb46d2b

Browse files
Update src/liballoc/vec.rs
Following suggestion from @jonas-schievink Co-Authored-By: Jonas Schievink <[email protected]>
1 parent 2ad52cd commit fb46d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ impl<T: Clone> Vec<T> {
14721472
/// difference, with each additional slot filled with `value`.
14731473
/// If `new_len` is less than `len`, the `Vec` is simply truncated.
14741474
///
1475-
/// This method requires `value` to implement [`Clone`],
1475+
/// This method requires `T` to implement [`Clone`],
14761476
/// in order to be able to clone the passed value.
14771477
/// If you need more flexibility (or want to rely on [`Default`] instead of
14781478
/// [`Clone`]), use [`resize_with`].

0 commit comments

Comments
 (0)