mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[Doc] Fix Array#to_h call-seq
Closes: https://github.com/ruby/ruby/pull/2254
This commit is contained in:
parent
84829392f5
commit
0f601df22c
1 changed files with 2 additions and 2 deletions
4
array.c
4
array.c
|
@ -2475,8 +2475,8 @@ rb_ary_to_a(VALUE ary)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* ary.to_h -> hash
|
||||
* ary.to_h { block } -> hash
|
||||
* ary.to_h -> hash
|
||||
* ary.to_h {|item| block } -> hash
|
||||
*
|
||||
* Returns the result of interpreting <i>ary</i> as an array of
|
||||
* <tt>[key, value]</tt> pairs.
|
||||
|
|
Loading…
Reference in a new issue