From 2f7e05b1b54db0129d8f6d2a9a4a60271d71821b Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 12 Jan 2015 04:33:57 +0000 Subject: [PATCH] * array.c (rb_ary_each): documented return value. [misc #10469][ruby-core:66063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ array.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 591f407f80..36fbd5a2c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 12 13:33:52 2015 SHIBATA Hiroshi + + * array.c (rb_ary_each): documented return value. + [misc #10469][ruby-core:66063] + Sun Jan 11 15:11:38 2015 Nobuyoshi Nakada * test/webrick/test_utils.rb (test_create_listeners): use diff --git a/array.c b/array.c index 55a6ba9492..9e28c4c71b 100644 --- a/array.c +++ b/array.c @@ -1787,9 +1787,9 @@ ary_enum_length(VALUE ary, VALUE args, VALUE eobj) * ary.each -> Enumerator * * Calls the given block once for each element in +self+, passing that element - * as a parameter. + * as a parameter. Returns the array itself. * - * An Enumerator is returned if no block is given. + * If no block is given, an Enumerator is returned. * * a = [ "a", "b", "c" ] * a.each {|x| print x, " -- " }