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:
nobu 2015-10-22 15:19:06 +00:00
parent 439c3e230f
commit 77a952d1fb
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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