mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enum.c: [DOC] Use #find in example to clarify alias by @rachellogie
Patch submitted via documenting-ruby/ruby#34 [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18ac026f81
commit
b09c01eff0
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun May 25 10:19:34 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* enum.c: [DOC] Use #find in example to clarify alias by @rachellogie
|
||||
Patch submitted via documenting-ruby/ruby#34
|
||||
|
||||
Sun May 25 10:16:43 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* cont.c: [DOC] Fix rdoc in example for Fiber#transfer by @majjoha
|
||||
|
|
4
enum.c
4
enum.c
|
@ -203,8 +203,8 @@ find_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop))
|
|||
*
|
||||
* If no block is given, an enumerator is returned instead.
|
||||
*
|
||||
* (1..10).detect { |i| i % 5 == 0 and i % 7 == 0 } #=> nil
|
||||
* (1..100).detect { |i| i % 5 == 0 and i % 7 == 0 } #=> 35
|
||||
* (1..10).detect { |i| i % 5 == 0 and i % 7 == 0 } #=> nil
|
||||
* (1..100).find { |i| i % 5 == 0 and i % 7 == 0 } #=> 35
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue