Remove unnecessary Vec<_>
annotation from docs
This was brought up in IRC by a confused reader.
This commit is contained in:
parent
2615106a46
commit
2f63e9c127
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user