From 0f601df22c258c568f0c6f8263903eafa14ae238 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 24 Jun 2019 17:03:49 +0900 Subject: [Doc] Fix Array#to_h call-seq Closes: https://github.com/ruby/ruby/pull/2254 --- array.c | 4 ++-- 1 file 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 ary as an array of * [key, value] pairs. -- cgit v1.2.3