mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix typos
This commit is contained in:
parent
1855f901c8
commit
b9aefdfc9f
1 changed files with 3 additions and 3 deletions
6
proc.c
6
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));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue