From 2569747d187ee68181343f8d4d5965bcea68f2ea Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Mon, 16 Nov 2015 06:32:58 +0100 Subject: [PATCH] Fix docs for HashSet::insert insert() returns bool, but it was wrongly stated that if the set had the key already present, that key would be returned (this was probably copied from the HashMap docs). Also remove a reference to the module-level documentation, which doesn't make sense as it doesn't give any more context. --- src/libstd/collections/hash/set.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libstd/collections/hash/set.rs b/src/libstd/collections/hash/set.rs index d4cef2ab07adf..bb7a96bfb4bd6 100644 --- a/src/libstd/collections/hash/set.rs +++ b/src/libstd/collections/hash/set.rs @@ -544,10 +544,7 @@ impl HashSet /// /// 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 - /// entry is not updated. See the [module-level documentation] for more. - /// - /// [module-level documentation]: index.html#insert-and-complex-keys + /// If the set did have this key present, `false` is returned. /// /// # Examples ///