Rollup merge of #58838 - jens1o:patch-1, r=Centril

Fix typo in Vec#resize_with documentation
This commit is contained in:
kennytm 2019-03-02 14:55:24 +08:00
commit 2e51007350
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

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