8000 update documentation for select and reject by jeffsaracco · Pull Request #166 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

update documentation for select and reject #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make select and reject wording consistent
returns true instead of `does not return false`
  • Loading branch information
jeffsaracco committed Aug 25, 2012
commit 2c1ceca4a184c63aad63af40b7ffb20dd77ba0e1
2 changes: 1 addition & 1 deletion array.c
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@ rb_ary_values_at(int argc, VALUE *argv, VALUE ary)
* ary.select -> Enumerator
*
* Returns a new array containing all elements of <i>ary</i>
* for which <em>block</em> does not return <code>false</code>
* for which <em>block</em> returns true.
* (see also <code>Enumerable#select</code>).
*
* If no block is given, an enumerator is returned instead.
Expand Down
2 changes: 1 addition & 1 deletion enum.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ find_all_i(VALUE i, VALUE ary, int argc, VALUE *argv)
* enum.select -> an_enumerator
*
* Returns an array containing all elements of <i>enum</i>
* for which <em>block</em> does not return <code>false</code>
* for which <em>block</em> returns true.
* (see also <code>Enumerable#reject</code>).
*
* If no block is given, an enumerator is returned instead.
Expand Down
0