Skip to content

Commit

Permalink
Rollup merge of rust-lang#33152 - bwinterton:master, r=steveklabnik
Browse files Browse the repository at this point in the history
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
  • Loading branch information
steveklabnik committed Apr 28, 2016
2 parents 32db236 + 3e9ea3b commit c72a771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/collections/hash/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit c72a771

Please sign in to comment.