summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sprintf.c3
1 files changed, 1 insertions, 2 deletions
@@ -521,8 +521,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
for (t = p; t < end && *t != '%'; t++) ;
if (t + 1 == end) {
- if (*t == '%') rb_raise(rb_eArgError, "incomplete format specifier");
- ++t;
}
PUSH(p, t - p);
if (coderange != ENC_CODERANGE_BROKEN && scanned < blen) {