summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index eecfc6347d..2d25868543 100644
--- a/string.c
+++ b/string.c
@@ -2904,7 +2904,7 @@ rb_str_to_i(int argc, VALUE *argv, VALUE str)
else base = NUM2INT(b);
if (base < 0) {
- rb_raise(rb_eArgError, "illegal radix %d", base);
+ rb_raise(rb_eArgError, "invalid radix %d", base);
}
return rb_str_to_inum(str, base, Qfalse);
}