about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2015-11-16 06:32:58 +0100
committerSebastian Hahn <sebastian@torproject.org>2015-11-16 06:32:58 +0100
commit2569747d187ee68181343f8d4d5965bcea68f2ea (patch)
tree460c2f712f3e81a1d023d08fc2084e23a1b3cf28 /src/libstd
parent531b0539b7c60dc2631b555b273616331ca74e8d (diff)
downloadrust-2569747d187ee68181343f8d4d5965bcea68f2ea.tar.gz
rust-2569747d187ee68181343f8d4d5965bcea68f2ea.zip
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.
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
     ///