]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary 'mut' bindings.
authorCorey Farwell <coreyf@rwell.org>
Tue, 1 Aug 2017 11:46:41 +0000 (07:46 -0400)
committerCorey Farwell <coreyf@rwell.org>
Tue, 1 Aug 2017 23:51:00 +0000 (19:51 -0400)
src/libstd/collections/hash/set.rs

index ff19a0a1f149d4be4b6ec92cf451c785c91018ba..f8a3166571403ac9d54e68a9650550e0c2e4ef4b 100644 (file)
@@ -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 @@ pub fn new() -> 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")]