mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fb99416115
commit
ce46bc6345
1 changed files with 6 additions and 7 deletions
13
enumerator.c
13
enumerator.c
|
@ -625,13 +625,12 @@ next_init(VALUE obj, struct enumerator *e)
|
|||
* p e.next
|
||||
* p e.next
|
||||
*
|
||||
* # result
|
||||
* # next_values next
|
||||
* # [] nil
|
||||
* # [1] 1
|
||||
* # [1, 2] [1, 2]
|
||||
* # [nil] nil
|
||||
* # [[1, 2]] [1, 2]
|
||||
* ## yield args next_values next
|
||||
* # yield [] nil
|
||||
* # yield 1 [1] 1
|
||||
* # yield 1, 2 [1, 2] [1, 2]
|
||||
* # yield nil [nil] nil
|
||||
* # yield [1, 2] [[1, 2]] [1, 2]
|
||||
*
|
||||
* Note that enumeration sequence by next_values method does not affect other
|
||||
* non-external enumeration methods, unless underlying iteration
|
||||
|
|
Loading…
Reference in a new issue