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
2
array.c
2
array.c
|
@ -2476,7 +2476,7 @@ rb_ary_to_a(VALUE ary)
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ary.to_h -> hash
|
* ary.to_h -> hash
|
||||||
* ary.to_h { block } -> hash
|
* ary.to_h {|item| block } -> hash
|
||||||
*
|
*
|
||||||
* Returns the result of interpreting <i>ary</i> as an array of
|
* Returns the result of interpreting <i>ary</i> as an array of
|
||||||
* <tt>[key, value]</tt> pairs.
|
* <tt>[key, value]</tt> pairs.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue