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:
Steve Klabnik 2016-04-28 09:51:44 -04:00
commit c72a771dd8

View file

@ -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
///