summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2019-06-24 17:03:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-04 09:20:56 +0900
commit0f601df22c258c568f0c6f8263903eafa14ae238 (patch)
tree0a249232002fdf1fdf3837914fe3317e24d0d447 /array.c
parent84829392f5bb094b2cac117a67d37307ecc3640b (diff)
downloadruby-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 44a0300efd..11542efe99 100644
--- a/array.c
+++ b/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.