diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 02:24:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 02:24:35 +0000 |
commit | db318509d5546696e65e6241197cdacbe442c071 (patch) | |
tree | f5c416e067a02a531c06cd6e0143cdf38ad4f6da /object.c | |
parent | c74995b2af9f7d1de110da7c1e6164aba5197d42 (diff) | |
download | ruby-db318509d5546696e65e6241197cdacbe442c071.tar.gz |
object.c: fix typo
* object.c (rb_mod_const_get): fix typo. should use SYM2ID() not
ID2SYM().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2084,7 +2084,7 @@ rb_mod_const_get(int argc, VALUE *argv, VALUE mod) } if (SYMBOL_P(name)) { - id = ID2SYM(name); + id = SYM2ID(name); if (!rb_is_const_id(id)) goto wrong_id; return RTEST(recur) ? rb_const_get(mod, id) : rb_const_get_at(mod, id); } |