git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-08-19 20:26:38 +00:00
Родитель fb99416115
Коммит ce46bc6345
1 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -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