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 @@ pub fn split_off(&mut self, at: usize) -> Self {
/// 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
///