diff options
author | Kenichi Kamiya <kachick1@gmail.com> | 2019-06-24 17:03:49 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-04 09:20:56 +0900 |
commit | 0f601df22c258c568f0c6f8263903eafa14ae238 (patch) | |
tree | 0a249232002fdf1fdf3837914fe3317e24d0d447 /array.c | |
parent | 84829392f5bb094b2cac117a67d37307ecc3640b (diff) | |
download | ruby-0f601df22c258c568f0c6f8263903eafa14ae238.tar.gz |
[Doc] Fix Array#to_h call-seq
Closes: https://github.com/ruby/ruby/pull/2254
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |