summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-23 01:39:41 (GMT)
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-23 01:39:41 (GMT)
commitb33841b32a82fa3a660c7fda97bc2d6784454d75 (patch)
tree832d445f2c12fba867d68b7f3919a2e6c39c781d /variable.c
parentd864828fb457d881c14ffa09d21a735b3151f4fc (diff)
* 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/trunk@54231 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 b53d0c1..940b47d 100644
--- a/variable.c
+++ b/variable.c
@@ -2457,6 +2457,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
*