From ac06fee5a38a6759158c1d3c82cf36073185bb90 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Fri, 15 Jan 2016 11:49:43 -0500 Subject: [PATCH] BTreeSet::insert returns false when key already exists --- src/libcollections/btree/set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/btree/set.rs b/src/libcollections/btree/set.rs index 55e9e3a1c34bb..c1381dde762e5 100644 --- a/src/libcollections/btree/set.rs +++ b/src/libcollections/btree/set.rs @@ -453,7 +453,7 @@ impl BTreeSet { /// /// 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