aboutsummaryrefslogtreecommitdiffstats
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 8d7d2ad7b9..f76a417d45 100644
--- a/string.c
+++ b/string.c
@@ -5186,7 +5186,7 @@ str_gsub(int argc, VALUE *argv, VALUE str, int bang)
tainted = OBJ_TAINTED_RAW(repl);
break;
default:
- rb_check_arity(argc, 1, 2);
+ rb_error_arity(argc, 1, 2);
}
pat = get_pat_quoted(argv[0], 1);