зеркало из https://github.com/github/ruby.git
* array.c (rb_ary_choice): fixed mistake from RDoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2b6252e64e
Коммит
82d5106e09
|
@ -3,6 +3,8 @@ Tue May 1 17:46:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
* array.c (rb_ary_choice): a new method to choose an element
|
* array.c (rb_ary_choice): a new method to choose an element
|
||||||
randomly from an array.
|
randomly from an array.
|
||||||
|
|
||||||
|
* array.c (rb_ary_choice): fixed mistake from RDoc.
|
||||||
|
|
||||||
Tue May 1 13:59:18 2007 Koichi Sasada <ko1@atdot.net>
|
Tue May 1 13:59:18 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* proc.c (proc_arity): fix an arity bug ([ruby-core:11060]).
|
* proc.c (proc_arity): fix an arity bug ([ruby-core:11060]).
|
||||||
|
|
2
array.c
2
array.c
|
@ -2943,7 +2943,7 @@ rb_ary_shuffle(VALUE ary)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* array.choice -> an_array
|
* array.choice -> obj
|
||||||
*
|
*
|
||||||
* Choose a random element from an array.
|
* Choose a random element from an array.
|
||||||
*/
|
*/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче