]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary `Vec<_>` annotation from docs
authorScott Olson <scott@scott-olson.org>
Fri, 3 Apr 2015 17:23:58 +0000 (13:23 -0400)
committerScott Olson <scott@scott-olson.org>
Fri, 3 Apr 2015 17:23:58 +0000 (13:23 -0400)
This was brought up in IRC by a confused reader.

src/libcollections/vec.rs

index 087b065031f2badba5d3314a147db426e9af508d..b767a1ea054c15fb5b23a88a0565ff3316b1ee69 100644 (file)
@@ -185,7 +185,7 @@ pub fn new() -> Vec<T> {
     /// # 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);