1
Fork 0

BTreeSet::insert returns false when key already exists

This commit is contained in:
Jake Goulding 2016-01-15 11:49:43 -05:00
parent 1f4e317e45
commit ac06fee5a3

View file

@ -453,7 +453,7 @@ impl<T: Ord> BTreeSet<T> {
///
/// If the set did not have a value present, `true` is returned.
///
/// If the set did have this key present, that value is returned, and the
/// If the set did have this key present, `false` is returned, and the
/// entry is not updated. See the [module-level documentation] for more.
///
/// [module-level documentation]: index.html#insert-and-complex-keys