Skip to content

Commit

Permalink
Fix typo in Vec#resize_with documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jens1o authored Mar 1, 2019
1 parent 7b4f8f9 commit 670a4d6
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 670a4d6

Please sign in to comment.