mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
[DOC] Array#map! fix to indicate return is self
This commit is contained in:
parent
4209ebb1e4
commit
60ca525fce
1 changed files with 2 additions and 2 deletions
4
array.c
4
array.c
|
@ -3659,9 +3659,9 @@ rb_ary_collect(VALUE ary)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* collect! {|element| ... } -> new_array
|
||||
* collect! {|element| ... } -> self
|
||||
* collect! -> new_enumerator
|
||||
* map! {|element| ... } -> new_array
|
||||
* map! {|element| ... } -> self
|
||||
* map! -> new_enumerator
|
||||
*
|
||||
* With a block given, calls the block with each element of +self+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue