Rename mrb_num_args_error to mrb_argnum_error; ref #4863

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-01-01 22:37:14 +09:00
parent b9c78c3fcc
commit 9174b18f34
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -800,7 +800,7 @@ mrb_hash_init(mrb_state *mrb, mrb_value hash)
mrb_hash_modify(mrb, hash);
if (!mrb_nil_p(block)) {
if (ifnone_p) {
mrb_num_args_error(mrb, 1, 0, 0);
mrb_argnum_error(mrb, 1, 0, 0);
}
RHASH(hash)->flags |= MRB_HASH_PROC_DEFAULT;
ifnone = block;