Fix typo in Vec#resize_with documentation
This commit is contained in:
parent
7b4f8f969c
commit
670a4d65d5
@ -1260,7 +1260,7 @@ impl<T> Vec<T> {
|
||||
/// This method uses a closure to create new values on every push. If
|
||||
/// you'd rather [`Clone`] a given value, use [`resize`]. If you want
|
||||
/// to use the [`Default`] trait to generate values, you can pass
|
||||
/// [`Default::default()`] as the second argument..
|
||||
/// [`Default::default()`] as the second argument.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user