mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
2b6252e64e
commit
82d5106e09
2 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue