diff --git a/ChangeLog b/ChangeLog index 242e3060f3..b75300c5ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ Tue May 1 17:46:05 2007 Yukihiro Matsumoto * array.c (rb_ary_choice): a new method to choose an element randomly from an array. + * array.c (rb_ary_choice): fixed mistake from RDoc. + Tue May 1 13:59:18 2007 Koichi Sasada * proc.c (proc_arity): fix an arity bug ([ruby-core:11060]). diff --git a/array.c b/array.c index 7639e22a1a..b265d6ac79 100644 --- a/array.c +++ b/array.c @@ -2943,7 +2943,7 @@ rb_ary_shuffle(VALUE ary) /* * call-seq: - * array.choice -> an_array + * array.choice -> obj * * Choose a random element from an array. */