summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 10:21:56 (GMT)
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 10:21:56 (GMT)
commitb5e0b65e5755c3cabef0c049a38b7753670cc305 (patch)
treea07749fbf8a13f139e8ef889a1ee69290c401c1e /enum.c
parentbbec11d329f5a72fe6151ec9fb0e25ff255f2eed (diff)
enum.c: improve docs for Enumerable#{any?,all?,none?,one?}
* enum.c: [DOC] reword docs for Enumerable#{any?,all?,none?,one?} to not mention the receiver (`enum') from call-seq, because it does not appear in the call-seq of the rendered HTML docs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/enum.c b/enum.c
index 9fd81ed..ad34004 100644
--- a/enum.c
+++ b/enum.c
@@ -1201,7 +1201,7 @@ DEFINE_ENUMFUNCS(all)
* +false+ or +nil+.
*
* If instead a pattern is supplied, the method returns whether
- * <code>pattern === element</code> for every element of <i>enum</i>.
+ * <code>pattern === element</code> for every collection member.
*
* %w[ant bear cat].all? { |word| word.length >= 3 } #=> true
* %w[ant bear cat].all? { |word| word.length >= 4 } #=> false
@@ -1242,7 +1242,7 @@ DEFINE_ENUMFUNCS(any)
* members is not +false+ or +nil+.
*
* If instead a pattern is supplied, the method returns whether
- * <code>pattern === element</code> for any element of <i>enum</i>.
+ * <code>pattern === element</code> for any collection member.
*
* %w[ant bear cat].any? { |word| word.length >= 3 } #=> true
* %w[ant bear cat].any? { |word| word.length >= 4 } #=> true
@@ -1506,7 +1506,7 @@ rb_nmin_run(VALUE obj, VALUE num, int by, int rev, int ary)
* true.
*
* If instead a pattern is supplied, the method returns whether
- * <code>pattern === element</code> for exactly one element of <i>enum</i>.
+ * <code>pattern === element</code> for exactly one collection member.
*
* %w{ant bear cat}.one? { |word| word.length == 4 } #=> true
* %w{ant bear cat}.one? { |word| word.length > 4 } #=> false
@@ -1550,7 +1550,7 @@ DEFINE_ENUMFUNCS(none)
* <code>true</code> only if none of the collection members is true.
*
* If instead a pattern is supplied, the method returns whether
- * <code>pattern === element</code> for none of the elements of <i>enum</i>.
+ * <code>pattern === element</code> for none of the collection members.
*
* %w{ant bear cat}.none? { |word| word.length == 5 } #=> true
* %w{ant bear cat}.none? { |word| word.length >= 4 } #=> false