Remove unnecessary 'mut' bindings.
This commit is contained in:
parent
070eb3c667
commit
9e2b0c6390
1 changed files with 2 additions and 2 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Reference in a new issue