1
0
Fork 0
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:
Kenichi Kamiya 2019-06-24 17:03:49 +09:00 committed by Hiroshi SHIBATA
parent 84829392f5
commit 0f601df22c
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

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