From 2f63e9c127ceff853f560a8a74f6d37c8ebad400 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Fri, 3 Apr 2015 13:23:58 -0400 Subject: [PATCH] Remove unnecessary `Vec<_>` annotation from docs This was brought up in IRC by a confused reader. --- src/libcollections/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 087b065031f2b..b767a1ea054c1 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -185,7 +185,7 @@ impl Vec { /// # Examples /// /// ``` - /// let mut vec: Vec<_> = Vec::with_capacity(10); + /// let mut vec = Vec::with_capacity(10); /// /// // The vector contains no items, even though it has capacity for more /// assert_eq!(vec.len(), 0);