summaryrefslogtreecommitdiffhomepage
path: root/src/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sprintf.c')
-rw-r--r--src/sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sprintf.c b/src/sprintf.c
index 630875a88..0e8ac830f 100644
--- a/src/sprintf.c
+++ b/src/sprintf.c
@@ -671,7 +671,7 @@ retry:
tmp = mrb_check_string_type(mrb, val);
if (!mrb_nil_p(tmp)) {
if (RSTRING_LEN(tmp) != 1 ) {
- mrb_raise(mrb, E_ARGUMENT_ERROR, "%%c requires a character");
+ mrb_raise(mrb, E_ARGUMENT_ERROR, "%c requires a character");
}
c = RSTRING_PTR(tmp)[0];
n = 1;