summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 04:57:49 (GMT)
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 04:57:49 (GMT)
commitd62b7e133e2de4807790e2cbe93f8a8481f45e37 (patch)
tree84fc1195252659abca661893eed6b0011df2d598
parentc7ab4f6dcb8473612226704b8a6060020145d159 (diff)
[DOC] Add call signature for {Array,Hash}#any?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--array.c1
-rw-r--r--hash.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/array.c b/array.c
index 0b0ed3d..701f0fc 100644
--- a/array.c
+++ b/array.c
@@ -5784,6 +5784,7 @@ rb_ary_drop_while(VALUE ary)
/*
* call-seq:
* ary.any? [{ |obj| block }] -> true or false
+ * any.any?(pattern) -> true or false
*
* See also Enumerable#any?
*/
diff --git a/hash.c b/hash.c
index af094cc..c9d60c7 100644
--- a/hash.c
+++ b/hash.c
@@ -3016,6 +3016,7 @@ any_p_i_pattern(VALUE key, VALUE value, VALUE arg)
/*
* call-seq:
* hsh.any? [{ |(key, value)| block }] -> true or false
+ * hsh.any?(pattern) -> true or false
*
* See also Enumerable#any?
*/