Remove unnecessary Vec<_> annotation from docs

This was brought up in IRC by a confused reader.
This commit is contained in:
Scott Olson 2015-04-03 13:23:58 -04:00
parent 2615106a46
commit 2f63e9c127

View 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);