diff options
| author | Jake Goulding <jake.goulding@gmail.com> | 2016-01-15 11:49:43 -0500 |
|---|---|---|
| committer | Jake Goulding <jake.goulding@gmail.com> | 2016-01-15 11:50:13 -0500 |
| commit | ac06fee5a38a6759158c1d3c82cf36073185bb90 (patch) | |
| tree | 0c719eaae70f6ec366f2eaaac63675b7dc11f01e | |
| parent | 1f4e317e45349eb2d3c853e96bfd24dd574b36d1 (diff) | |
| download | rust-ac06fee5a38a6759158c1d3c82cf36073185bb90.tar.gz rust-ac06fee5a38a6759158c1d3c82cf36073185bb90.zip | |
BTreeSet::insert returns false when key already exists
| -rw-r--r-- | src/libcollections/btree/set.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/btree/set.rs b/src/libcollections/btree/set.rs index 55e9e3a1c34..c1381dde762 100644 --- a/src/libcollections/btree/set.rs +++ b/src/libcollections/btree/set.rs @@ -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 |
