diff --git a/array.c b/array.c index 9528ea59b6..bd24216af3 100644 --- a/array.c +++ b/array.c @@ -5926,7 +5926,8 @@ rb_ary_sum(int argc, VALUE *argv, VALUE ary) * 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: *