mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
* array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui
<yugui@yugui.sakura.ne.jp>. [ruby-dev:31748] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
629b1e4324
commit
edd7c787ad
19 changed files with 146 additions and 133 deletions
2
array.c
2
array.c
|
@ -2929,7 +2929,7 @@ rb_ary_choice(VALUE ary)
|
|||
* Calls <i>block</i> repeatedly forever.
|
||||
*
|
||||
* a = ["a", "b", "c"]
|
||||
* a.each {|x| puts x } # print, a, b, c, a, b, c,.. forever.
|
||||
* a.cycle {|x| puts x } # print, a, b, c, a, b, c,.. forever.
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue