diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-11 17:56:02 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-11 17:56:02 +0000 |
commit | 492d4ae58484df9dd314641cc44c56f7a3573303 (patch) | |
tree | 4f6831c9a768ff851015263754ede6ea45177340 /enum.c | |
parent | 21b241ab14e4f72207a0ccffa1a8bc3fc2603497 (diff) |
merge revision(s) 57421:
[DOC] Add empty example to enum.all? and any?
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 * */ |