Skip to content

Commit 2a815a2

Browse files
committed
Auto merge of rust-lang#33276 - bwinterton:btreeset-insert-doc-fix, r=GuillaumeGomez
Make BTreeSet::Insert docs more consistent Made the BTreeSet::Insert documentation consistent with the HashSet::Insert documentation by using the term 'value' instead of 'key'. r? @steveklabnik
2 parents 9e17622 + 3c1d087 commit 2a815a2

File tree

1 file changed

+2
-2
lines changed
  • src/libcollections/btree

1 file changed

+2
-2
lines changed

src/libcollections/btree/set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@ impl<T: Ord> BTreeSet<T> {
477477

478478
/// Adds a value to the set.
479479
///
480-
/// If the set did not have a value present, `true` is returned.
480+
/// If the set did not have this value present, `true` is returned.
481481
///
482-
/// If the set did have this key present, `false` is returned, and the
482+
/// If the set did have this value present, `false` is returned, and the
483483
/// entry is not updated. See the [module-level documentation] for more.
484484
///
485485
/// [module-level documentation]: index.html#insert-and-complex-keys

0 commit comments

Comments
 (0)