summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c
index 89ab59d4b..90e609992 100644
--- a/src/string.c
+++ b/src/string.c
@@ -1107,9 +1107,6 @@ mrb_str_aref_m(mrb_state *mrb, mrb_value str)
mrb_get_args(mrb, "ii", &n1, &n2);
return str_substr(mrb, str, n1, n2);
}
- if (argc != 1) {
- mrb_raisef(mrb, E_ARGUMENT_ERROR, "wrong number of arguments (%S for 1)", mrb_fixnum_value(argc));
- }
return mrb_str_aref(mrb, str, a1);
}