Skip to content

Commit 2c1ceca

Browse files
committed
make select and reject wording consistent
returns true instead of `does not return false`
1 parent 14c0551 commit 2c1ceca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ rb_ary_values_at(int argc, VALUE *argv, VALUE ary)
24092409
* ary.select -> Enumerator
24102410
*
24112411
* Returns a new array containing all elements of <i>ary</i>
2412-
* for which <em>block</em> does not return <code>false</code>
2412+
* for which <em>block</em> returns true.
24132413
* (see also <code>Enumerable#select</code>).
24142414
*
24152415
* If no block is given, an enumerator is returned instead.

enum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ find_all_i(VALUE i, VALUE ary, int argc, VALUE *argv)
312312
* enum.select -> an_enumerator
313313
*
314314
* Returns an array containing all elements of <i>enum</i>
315-
* for which <em>block</em> does not return <code>false</code>
315+
* for which <em>block</em> returns true.
316316
* (see also <code>Enumerable#reject</code>).
317317
*
318318
* If no block is given, an enumerator is returned instead.

0 commit comments

Comments
 (0)