summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
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 13d999f3ae..44b85200b1 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);