aboutsummaryrefslogtreecommitdiffstats
path: root/sprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-30 04:44:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-30 04:44:39 +0000
commit531ceafd3412b45690ee2bb7edbab21e5e5b297b (patch)
tree9e921e2b346969ea7e66126e17f996e04fb1611a /sprintf.c
parenta55535a67ae148371f8d9bc78edf5b562c11ac73 (diff)
downloadruby-531ceafd3412b45690ee2bb7edbab21e5e5b297b.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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sprintf.c b/sprintf.c
index c2e5de5d64..99c97a01c0 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -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)) {