зеркало из https://github.com/github/ruby.git
* enumerator.c: [DOC] Fix example to show Enumerator#peek behavior
Patch by Erik Hollembeak [Bug #9814] [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bae87a4790
Коммит
a563664e06
|
@ -1,3 +1,8 @@
|
|||
Sun May 25 11:58:26 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* enumerator.c: [DOC] Fix example to show Enumerator#peek behavior
|
||||
Patch by Erik Hollembeak [Bug #9814]
|
||||
|
||||
Sun May 25 11:56:33 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vsnprintf.c (BSD_vfprintf): fix string width when precision is
|
||||
|
|
|
@ -838,7 +838,7 @@ enumerator_peek_values_m(VALUE obj)
|
|||
* p e.peek #=> 2
|
||||
* p e.next #=> 2
|
||||
* p e.next #=> 3
|
||||
* p e.next #raises StopIteration
|
||||
* p e.peek #raises StopIteration
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче