Rollup merge of #24012 - tsion:patch-1, r=steveklabnik

This was brought up in IRC by a confused reader.

r? steveklabnik
This commit is contained in:
Manish Goregaokar 2015-04-04 10:56:06 +05:30
commit 0daa005826

View file

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