summaryrefslogtreecommitdiffhomepage
path: root/src/hash.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-01-01 22:37:14 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-01-01 22:37:14 +0900
commit9174b18f34cdee25fdf8433ee33642932b06a445 (patch)
treea477a4a274b51302331c22a3d8ba538587203363 /src/hash.c
parentb9c78c3fccf0917a8f4b05e02b79d80eeb83982d (diff)
downloadmruby-9174b18f34cdee25fdf8433ee33642932b06a445.tar.gz
mruby-9174b18f34cdee25fdf8433ee33642932b06a445.zip
Rename `mrb_num_args_error` to `mrb_argnum_error`; ref #4863
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c
index afcd3511d..70f437358 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -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;