about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-04-28 09:51:44 -0400
committerSteve Klabnik <steve@steveklabnik.com>2016-04-28 09:51:44 -0400
commitc72a771dd838ea8ad704bded5a13607e156c87a7 (patch)
tree3ebea9d8ca8deb143d249bfc16df6761c207441d /src/libstd
parent32db236342433127edf72cff64c7d858d7b8ee22 (diff)
parent3e9ea3b6044f06f588e01436cb4344ae93964846 (diff)
downloadrust-c72a771dd838ea8ad704bded5a13607e156c87a7.tar.gz
rust-c72a771dd838ea8ad704bded5a13607e156c87a7.zip
Rollup merge of #33152 - bwinterton:master, r=steveklabnik
Make HashSet::Insert documentation more consistent

I have made the HashSet::Insert documentation more consistent in the use of the term 'value' vs 'key'. Also clarified that if _this_ value is present true is returned, instead of the ambiguous 'a value present'.

r? @steveklabnik
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/set.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/set.rs b/src/libstd/collections/hash/set.rs
index b353a4c1ba1..e4ef3fca55d 100644
--- a/src/libstd/collections/hash/set.rs
+++ b/src/libstd/collections/hash/set.rs
@@ -535,9 +535,9 @@ impl<T, S> HashSet<T, S>
 
     /// Adds a value to the set.
     ///
-    /// If the set did not have a value present, `true` is returned.
+    /// If the set did not have this value present, `true` is returned.
     ///
-    /// If the set did have this key present, `false` is returned.
+    /// If the set did have this value present, `false` is returned.
     ///
     /// # Examples
     ///