about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2016-01-15 11:49:43 -0500
committerJake Goulding <jake.goulding@gmail.com>2016-01-15 11:50:13 -0500
commitac06fee5a38a6759158c1d3c82cf36073185bb90 (patch)
tree0c719eaae70f6ec366f2eaaac63675b7dc11f01e
parent1f4e317e45349eb2d3c853e96bfd24dd574b36d1 (diff)
downloadrust-ac06fee5a38a6759158c1d3c82cf36073185bb90.tar.gz
rust-ac06fee5a38a6759158c1d3c82cf36073185bb90.zip
BTreeSet::insert returns false when key already exists
-rw-r--r--src/libcollections/btree/set.rs2
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