Skip to content

Commit be918b6

Browse files
committed
Rollup merge of rust-lang#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
2 parents cc00ebe + 3e9ea3b commit be918b6

File tree

1 file changed

+2
-2
lines changed
  • src/libstd/collections/hash

1 file changed

+2
-2
lines changed

src/libstd/collections/hash/set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ impl<T, S> HashSet<T, S>
535535

536536
/// Adds a value to the set.
537537
///
538-
/// If the set did not have a value present, `true` is returned.
538+
/// If the set did not have this value present, `true` is returned.
539539
///
540-
/// If the set did have this key present, `false` is returned.
540+
/// If the set did have this value present, `false` is returned.
541541
///
542542
/// # Examples
543543
///

0 commit comments

Comments
 (0)