about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-03-02 14:55:24 +0800
committerkennytm <kennytm@gmail.com>2019-03-02 22:58:44 +0800
commit2e51007350725f3d41288d9321b8192495f83b2b (patch)
treee66e585af420bc06b6bfa341d1d8b614524b64fb
parent0404c836263f434a1b81f08a59a803fdf2c81966 (diff)
parent670a4d65d577cfc59eefe8eb0b73d5b027ea0038 (diff)
downloadrust-2e51007350725f3d41288d9321b8192495f83b2b.tar.gz
rust-2e51007350725f3d41288d9321b8192495f83b2b.zip
Rollup merge of #58838 - jens1o:patch-1, r=Centril
Fix typo in Vec#resize_with documentation
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 229dafc5fdc..947ce354ae7 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -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
     ///