Skip to content

Commit 0daa005

Browse files
committed
Rollup merge of rust-lang#24012 - tsion:patch-1, r=steveklabnik
This was brought up in IRC by a confused reader. r? steveklabnik
2 parents 9ebb53e + 2f63e9c commit 0daa005

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)