summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-11 12:43:56 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-11 12:43:56 (GMT)
commit23ba7541e5ead7341bdf1106c361006e42c687fe (patch)
tree3e60a3879de87661a2092c64e31048275cb2d225 /sprintf.c
parent2f7290d4b3b1fd01f840f07c1db46929e3319db2 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sprintf.c b/sprintf.c
index 13d999f..44b8520 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -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);