aboutsummaryrefslogtreecommitdiffstats
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 b59e3d1401..48aae1de34 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -406,7 +406,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
p--;
case '%':
if (flags != FNONE) {
- rb_raise(rb_eArgError, "illegal format character - %%");
+ rb_raise(rb_eArgError, "invalid format character - %%");
}
PUSH("%", 1);
break;