Rollup merge of #33152 - bwinterton:master, r=steveklabnik
Make HashSet::Insert documentation more consistent I have made the HashSet::Insert documentation more consistent in the use of the term 'value' vs 'key'. Also clarified that if _this_ value is present true is returned, instead of the ambiguous 'a value present'. r? @steveklabnik
This commit is contained in:
commit
c72a771dd8
1 changed files with 2 additions and 2 deletions
|
@ -535,9 +535,9 @@ impl<T, S> HashSet<T, S>
|
|||
|
||||
/// Adds a value to the set.
|
||||
///
|
||||
/// If the set did not have a value present, `true` is returned.
|
||||
/// If the set did not have this value present, `true` is returned.
|
||||
///
|
||||
/// If the set did have this key present, `false` is returned.
|
||||
/// If the set did have this value present, `false` is returned.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue