ruby-changes:53313
From: stomar <ko1@a...>
Date: Sun, 4 Nov 2018 20:41:57 +0900 (JST)
Subject: [ruby-changes:53313] stomar:r65529 (trunk): hash.c: [DOC] improve Hash#{select!, keep_if} docs
stomar 2018-11-04 20:41:52 +0900 (Sun, 04 Nov 2018) New Revision: 65529 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65529 Log: hash.c: [DOC] improve Hash#{select!,keep_if} docs Modified files: trunk/hash.c Index: hash.c =================================================================== --- hash.c (revision 65528) +++ hash.c (revision 65529) @@ -2359,8 +2359,8 @@ keep_if_i(VALUE key, VALUE value, VALUE https://github.com/ruby/ruby/blob/trunk/hash.c#L2359 * 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) https://github.com/ruby/ruby/blob/trunk/hash.c#L2383 * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/