Skip to content

Commit

Permalink
Remove unnecessary Vec<_> annotation from docs
Browse files Browse the repository at this point in the history
This was brought up in IRC by a confused reader.
  • Loading branch information
Scott Olson committed Apr 3, 2015
1 parent 2615106 commit 2f63e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/vec.rs
Expand Up @@ -185,7 +185,7 @@ impl<T> 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);
Expand Down

0 comments on commit 2f63e9c

Please sign in to comment.