adjust spaces [ci skip]
* array.c (rb_ary_collect): [DOC] Fix space of code example of Array#map. [Fix GH-1062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
439c3e230f
commit
77a952d1fb
@ -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
|
||||
|
6
array.c
6
array.c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user