ruby-changes:46092
From: nagachika <ko1@a...>
Date: Tue, 28 Mar 2017 00:43:41 +0900 (JST)
Subject: [ruby-changes:46092] nagachika:r58163 (ruby_2_3): merge revision(s) 58037: [Backport #10944]
nagachika 2017-03-28 00:43:35 +0900 (Tue, 28 Mar 2017) New Revision: 58163 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58163 Log: merge revision(s) 58037: [Backport #10944] docs for creating arrays * array.c: [DOC] add example for Array.new with block and index. Reported by Don Cruickshank. [ruby-core:68442] [Bug #10944] Modified directories: branches/ruby_2_3/ Modified files: branches/ruby_2_3/array.c branches/ruby_2_3/version.h Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 58162) +++ ruby_2_3/version.h (revision 58163) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.3" #define RUBY_RELEASE_DATE "2017-03-28" -#define RUBY_PATCHLEVEL 272 +#define RUBY_PATCHLEVEL 273 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 3 Index: ruby_2_3/array.c =================================================================== --- ruby_2_3/array.c (revision 58162) +++ ruby_2_3/array.c (revision 58163) @@ -5592,7 +5592,8 @@ rb_ary_dig(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ruby_2_3/array.c#L5592 * This method is safe to use with mutable objects such as hashes, strings or * other arrays: * - * Array.new(4) { Hash.new } #=> [{}, {}, {}, {}] + * Array.new(4) { Hash.new } #=> [{}, {}, {}, {}] + * Array.new(4) {|i| i.to_s } #=> ["0", "1", "2", "3"] * * This is also a quick way to build up multi-dimensional arrays: * Property changes on: ruby_2_3 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r58037 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/