зеркало из https://github.com/github/ruby.git
* enum.c: document that it is OK to take more than available by @mvidner [fix GH-525] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
59c1d04dae
Коммит
993e57d175
1
enum.c
1
enum.c
|
@ -2141,6 +2141,7 @@ take_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args))
|
|||
*
|
||||
* a = [1, 2, 3, 4, 5, 0]
|
||||
* a.take(3) #=> [1, 2, 3]
|
||||
* a.take(30) #=> [1, 2, 3, 4, 5, 0]
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче