about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-08-01 07:46:41 -0400
committerCorey Farwell <coreyf@rwell.org>2017-08-01 19:51:00 -0400
commit9e2b0c6390526e46f7bd217e13c281f7895bd1d9 (patch)
treec0a82f1cff5e4b6b7950e12c07bd126435f2d7ba /src/libstd
parent070eb3c66775789fbfe1607d3d6ef643c9afe3db (diff)
Remove unnecessary 'mut' bindings.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/set.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/set.rs b/src/libstd/collections/hash/set.rs
index ff19a0a1f14..f8a31665714 100644
--- a/src/libstd/collections/hash/set.rs
+++ b/src/libstd/collections/hash/set.rs
@@ -129,7 +129,7 @@ impl<T: Hash + Eq> HashSet<T, RandomState> {
     ///
     /// ```
     /// use std::collections::HashSet;
-    /// let mut set: HashSet<i32> = HashSet::new();
+    /// let set: HashSet<i32> = HashSet::new();
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
@@ -146,7 +146,7 @@ impl<T: Hash + Eq> HashSet<T, RandomState> {
     ///
     /// ```
     /// use std::collections::HashSet;
-    /// let mut set: HashSet<i32> = HashSet::with_capacity(10);
+    /// let set: HashSet<i32> = HashSet::with_capacity(10);
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]