From 65c744fb9cb65222dbab16497444da87df86966f Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 20 Nov 2015 03:53:25 +0000 Subject: * array.c: clarify docs for take_while/drop_while samples. [ci skip][fix GH-1028] Patch by @leriksen git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'array.c') diff --git a/array.c b/array.c index 8f8eb1e8d9..159dc8f7a4 100644 --- a/array.c +++ b/array.c @@ -5419,7 +5419,7 @@ rb_ary_take(VALUE obj, VALUE n) /* * call-seq: - * ary.take_while { |arr| block } -> new_ary + * ary.take_while { |obj| block } -> new_ary * ary.take_while -> Enumerator * * Passes elements to the block until the block returns +nil+ or +false+, then @@ -5478,7 +5478,7 @@ rb_ary_drop(VALUE ary, VALUE n) /* * call-seq: - * ary.drop_while { |arr| block } -> new_ary + * ary.drop_while { |obj| block } -> new_ary * ary.drop_while -> Enumerator * * Drops elements up to, but not including, the first element for which the -- cgit v1.2.3