diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | array.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Fri Oct 23 00:19:04 2015 yui-knk <spiketeika@gmail.com> + + * array.c (rb_ary_collect): [DOC] Fix space of code example of + Array#map. [Fix GH-1062] + Thu Oct 22 18:52:53 2015 Akinori MUSHA <knu@iDaemons.org> * vm_eval.c (rb_f_loop): When a loop is stopped by a StopIteration @@ -2721,9 +2721,9 @@ rb_ary_sort_by_bang(VALUE ary) * If no block is given, an Enumerator is returned instead. * * a = [ "a", "b", "c", "d" ] - * a.collect { |x| x + "!" } #=> ["a!", "b!", "c!", "d!"] - * a.map.with_index{ |x, i| x * i } #=> ["", "b", "cc", "ddd"] - * a #=> ["a", "b", "c", "d"] + * a.collect { |x| x + "!" } #=> ["a!", "b!", "c!", "d!"] + * a.map.with_index { |x, i| x * i } #=> ["", "b", "cc", "ddd"] + * a #=> ["a", "b", "c", "d"] */ static VALUE |