summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-11 17:56:02 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-11 17:56:02 +0000
commit492d4ae58484df9dd314641cc44c56f7a3573303 (patch)
tree4f6831c9a768ff851015263754ede6ea45177340
parent21b241ab14e4f72207a0ccffa1a8bc3fc2603497 (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
-rw-r--r--enum.c2
-rw-r--r--version.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index 5a56dca5c1..310db3f1df 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
*
*/
diff --git a/version.h b/version.h
index 36e7dcb0ff..e50d150717 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.4.0"
#define RUBY_RELEASE_DATE "2017-03-12"
-#define RUBY_PATCHLEVEL 36
+#define RUBY_PATCHLEVEL 37
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 3