summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-04 11:41:52 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-04 11:41:52 +0000
commitb3adc0c5647f0c96cdc7cecad07fe82e5e63827c (patch)
tree7dd8243aa4c2883c45d9562521fb38c1300c4fe2 /hash.c
parent139d9d819cdc2df640b5dab801348f5dda6a7a39 (diff)
hash.c: [DOC] improve Hash#{select!,keep_if} docs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 0a164cf..65f8539 100644
--- a/hash.c
+++ b/hash.c
@@ -2359,8 +2359,8 @@ keep_if_i(VALUE key, VALUE value, VALUE hash)
* hsh.select! {| key, value | block } -> hsh or nil
* hsh.select! -> an_enumerator
*
- * Equivalent to <code>Hash#keep_if</code>, but returns
- * <code>nil</code> if no changes were made.
+ * Equivalent to Hash#keep_if, but returns
+ * +nil+ if no changes were made.
*/
VALUE
@@ -2383,10 +2383,11 @@ rb_hash_select_bang(VALUE hash)
* hsh.keep_if -> an_enumerator
*
* Deletes every key-value pair from <i>hsh</i> for which <i>block</i>
- * evaluates to false.
+ * evaluates to +false+.
*
* If no block is given, an enumerator is returned instead.
*
+ * See also Hash#select!.
*/
VALUE