From 11b277344113be65b8a8db6e2c7ff4040104bee9 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 29 Mar 2016 07:22:08 +0000 Subject: merge revision(s) 54231: [Backport #12121] * variable.c: Added documentation about order of `Module#constants` [ci skip][Bug #12121][ruby-dev:49505][fix GH-1301] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'variable.c') diff --git a/variable.c b/variable.c index d83c4ac95b..79e4c8d530 100644 --- a/variable.c +++ b/variable.c @@ -2445,6 +2445,9 @@ rb_const_list(void *data) * modules (example at start of section), unless the inherit * parameter is set to false. * + * The implementation makes no guarantees about the order in which the + * constants are yielded. + * * IO.constants.include?(:SYNC) #=> true * IO.constants(false).include?(:SYNC) #=> false * -- cgit v1.2.3