Fix typo in Vec#resize_with documentation

This commit is contained in:
Jens Hausdorf 2019-03-01 13:19:00 +01:00 committed by GitHub
parent 7b4f8f969c
commit 670a4d65d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
///