We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 070eb3c commit 9e2b0c6Copy full SHA for 9e2b0c6
src/libstd/collections/hash/set.rs
@@ -129,7 +129,7 @@ impl<T: Hash + Eq> HashSet<T, RandomState> {
129
///
130
/// ```
131
/// use std::collections::HashSet;
132
- /// let mut set: HashSet<i32> = HashSet::new();
+ /// let set: HashSet<i32> = HashSet::new();
133
134
#[inline]
135
#[stable(feature = "rust1", since = "1.0.0")]
@@ -146,7 +146,7 @@ impl<T: Hash + Eq> HashSet<T, RandomState> {
146
147
148
149
- /// let mut set: HashSet<i32> = HashSet::with_capacity(10);
+ /// let set: HashSet<i32> = HashSet::with_capacity(10);
150
151
152
0 commit comments