diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-30 04:44:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-30 04:44:39 +0000 |
commit | 51964bf995b7f3b0c1202646fc619b91e052f648 (patch) | |
tree | 9e921e2b346969ea7e66126e17f996e04fb1611a /sprintf.c | |
parent | 23ce0a421d51110ac20db998c2f411b9eb290b5b (diff) | |
download | ruby-51964bf995b7f3b0c1202646fc619b91e052f648.tar.gz |
symbol.c: rb_sym_intern
* symbol.c (rb_sym_intern): rename from rb_cstr_intern and add
variants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -611,9 +611,9 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt) if (!NIL_P(sym)) nextvalue = rb_hash_lookup2(hash, sym, Qundef); if (nextvalue == Qundef) { if (NIL_P(sym)) { - sym = rb_cstr_intern(start + 1, - len - 2 /* without parenthesis */, - enc); + sym = rb_sym_intern(start + 1, + len - 2 /* without parenthesis */, + enc); } nextvalue = rb_hash_default_value(hash, sym); if (NIL_P(nextvalue)) { |