Rollup merge of #58838 - jens1o:patch-1, r=Centril
Fix typo in Vec#resize_with documentation
This commit is contained in:
commit
2e51007350
@ -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…
x
Reference in New Issue
Block a user