diff options
| author | Scott Olson <scott@scott-olson.org> | 2015-04-03 13:23:58 -0400 |
|---|---|---|
| committer | Scott Olson <scott@scott-olson.org> | 2015-04-03 13:23:58 -0400 |
| commit | 2f63e9c127ceff853f560a8a74f6d37c8ebad400 (patch) | |
| tree | 6dc83670134a47a8d129e8c85f99cb2fdd1ba1c3 | |
| parent | 2615106a46879c4e9acc46874ebe06b549d06d67 (diff) | |
| download | rust-2f63e9c127ceff853f560a8a74f6d37c8ebad400.tar.gz rust-2f63e9c127ceff853f560a8a74f6d37c8ebad400.zip | |
Remove unnecessary `Vec<_>` annotation from docs
This was brought up in IRC by a confused reader.
| -rw-r--r-- | src/libcollections/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 087b065031f..b767a1ea054 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -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); |
