Skip to content

Commit

Permalink
Rollup merge of rust-lang#58838 - jens1o:patch-1, r=Centril
Browse files Browse the repository at this point in the history
Fix typo in Vec#resize_with documentation
  • Loading branch information
Mark-Simulacrum committed Mar 2, 2019
2 parents 9d67c38 + 670a4d6 commit 71cda62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 71cda62

Please sign in to comment.