Skip to content

Commit 9e2b0c6

Browse files
committed
Remove unnecessary 'mut' bindings.
1 parent 070eb3c commit 9e2b0c6

File tree

1 file changed

+2
-2
lines changed
  • src/libstd/collections/hash

1 file changed

+2
-2
lines changed

src/libstd/collections/hash/set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<T: Hash + Eq> HashSet<T, RandomState> {
129129
///
130130
/// ```
131131
/// use std::collections::HashSet;
132-
/// let mut set: HashSet<i32> = HashSet::new();
132+
/// let set: HashSet<i32> = HashSet::new();
133133
/// ```
134134
#[inline]
135135
#[stable(feature = "rust1", since = "1.0.0")]
@@ -146,7 +146,7 @@ impl<T: Hash + Eq> HashSet<T, RandomState> {
146146
///
147147
/// ```
148148
/// use std::collections::HashSet;
149-
/// let mut set: HashSet<i32> = HashSet::with_capacity(10);
149+
/// let set: HashSet<i32> = HashSet::with_capacity(10);
150150
/// ```
151151
#[inline]
152152
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)