summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-28 16:02:55 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-28 16:02:55 +0000
commita2915284495bea277c852c9e57674c98867bac25 (patch)
tree736cfac7107e2efd917580d22ce352bb9990846c /variable.c
parentd8eb164af20ef6ea1ecfa46a57aa505abc3d77d1 (diff)
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_2@54329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index 1395f5d625..5b0b5d8e89 100644
--- a/variable.c
+++ b/variable.c
@@ -2074,6 +2074,9 @@ rb_const_list(void *data)
* modules (example at start of section), unless the <i>inherit</i>
* parameter is set to <code>false</code>.
*
+ * 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
*