Skip to content

Commit 2f63e9c

Browse files
author
Scott Olson
committed
Remove unnecessary Vec<_> annotation from docs
This was brought up in IRC by a confused reader.
1 parent 2615106 commit 2f63e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl<T> Vec<T> {
185185
/// # Examples
186186
///
187187
/// ```
188-
/// let mut vec: Vec<_> = Vec::with_capacity(10);
188+
/// let mut vec = Vec::with_capacity(10);
189189
///
190190
/// // The vector contains no items, even though it has capacity for more
191191
/// assert_eq!(vec.len(), 0);

0 commit comments

Comments
 (0)