about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-11-16 09:22:51 +0000
committerbors <bors@rust-lang.org>2015-11-16 09:22:51 +0000
commit94ec5f8f8975afed060b62cc0bfe6c91b6e87fac (patch)
treece8de562e6cd010b7cf72f118a99c10d9f9c94cb /src/libstd
parentaf5d9d65e781d587414b266fb2e5815ed85f0bd3 (diff)
parent2569747d187ee68181343f8d4d5965bcea68f2ea (diff)
downloadrust-94ec5f8f8975afed060b62cc0bfe6c91b6e87fac.tar.gz
rust-94ec5f8f8975afed060b62cc0bfe6c91b6e87fac.zip
Auto merge of #29851 - shahn:hashset_doc_fix, r=steveklabnik
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.

r? @steveklabnik
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/set.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/collections/hash/set.rs b/src/libstd/collections/hash/set.rs
index d4cef2ab07a..bb7a96bfb4b 100644
--- a/src/libstd/collections/hash/set.rs
+++ b/src/libstd/collections/hash/set.rs
@@ -544,10 +544,7 @@ impl<T, S> HashSet<T, S>
     ///
     /// 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
     ///