Skip to content

Commit 2e51007

Browse files
committed
Rollup merge of rust-lang#58838 - jens1o:patch-1, r=Centril
Fix typo in Vec#resize_with documentation
2 parents 0404c83 + 670a4d6 commit 2e51007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ impl<T> Vec<T> {
12601260
/// This method uses a closure to create new values on every push. If
12611261
/// you'd rather [`Clone`] a given value, use [`resize`]. If you want
12621262
/// to use the [`Default`] trait to generate values, you can pass
1263-
/// [`Default::default()`] as the second argument..
1263+
/// [`Default::default()`] as the second argument.
12641264
///
12651265
/// # Examples
12661266
///

0 commit comments

Comments
 (0)