aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-12-21 17:39:43 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-12-21 17:40:15 +0900
commitb9aefdfc9f57edbfd286209eca2ab360848f2478 (patch)
tree9286bad22689ef2a70e0eaf0f0ecf41f9a9659f4 /proc.c
parent1855f901c801a4c21e0d2834da8ef914bf47f3d9 (diff)
downloadruby-b9aefdfc9f57edbfd286209eca2ab360848f2478.tar.gz
Fix typos
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proc.c b/proc.c
index cff8e9e7af..d075b7382e 100644
--- a/proc.c
+++ b/proc.c
@@ -2699,7 +2699,7 @@ method_def_min_max_arity(const rb_method_definition_t *def, int *max)
}
static int
-method_def_aritry(const rb_method_definition_t *def)
+method_def_arity(const rb_method_definition_t *def)
{
int max, min = method_def_min_max_arity(def, &max);
return min == max ? min : -min-1;
@@ -2708,7 +2708,7 @@ method_def_aritry(const rb_method_definition_t *def)
int
rb_method_entry_arity(const rb_method_entry_t *me)
{
- return method_def_aritry(me->def);
+ return method_def_arity(me->def);
}
/*
@@ -2969,7 +2969,7 @@ method_def_parameters(const rb_method_definition_t *def)
break;
}
- return rb_unnamed_parameters(method_def_aritry(def));
+ return rb_unnamed_parameters(method_def_arity(def));
}