summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/enum.c b/enum.c
index 5a56dca..310db3f 100644
--- a/enum.c
+++ b/enum.c
@@ -1166,6 +1166,7 @@ DEFINE_ENUMFUNCS(all)
* %w[ant bear cat].all? { |word| word.length >= 3 } #=> true
* %w[ant bear cat].all? { |word| word.length >= 4 } #=> false
* [nil, true, 99].all? #=> false
+ * [].all? #=> true
*
*/
@@ -1200,6 +1201,7 @@ DEFINE_ENUMFUNCS(any)
* %w[ant bear cat].any? { |word| word.length >= 3 } #=> true
* %w[ant bear cat].any? { |word| word.length >= 4 } #=> true
* [nil, true, 99].any? #=> true
+ * [].any? #=> false
*
*/