diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-11 12:43:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-11 12:43:56 +0000 |
commit | 23ba7541e5ead7341bdf1106c361006e42c687fe (patch) | |
tree | 3e60a3879de87661a2092c64e31048275cb2d225 /sprintf.c | |
parent | 2f7290d4b3b1fd01f840f07c1db46929e3319db2 (diff) |
* sprintf.c (rb_str_format): fix error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -584,7 +584,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt) #endif len = (int)(p - start + 1); /* including parenthesis */ if (id) { - rb_raise(rb_eArgError, "name%.*s after <%s>", + rb_raise(rb_eArgError, "named%.*s after <%s>", len, start, rb_id2name(id)); } id = rb_intern3(start + 1, len - 2 /* without parenthesis */, enc); |