[前][次][番号順一覧][スレッド一覧]

ruby-changes:70415

From: Kazuhiro <ko1@a...>
Date: Tue, 21 Dec 2021 17:58:13 +0900 (JST)
Subject: [ruby-changes:70415] b9aefdfc9f (master): Fix typos

https://git.ruby-lang.org/ruby.git/commit/?id=b9aefdfc9f

From b9aefdfc9f57edbfd286209eca2ab360848f2478 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Tue, 21 Dec 2021 17:39:43 +0900
Subject: Fix typos

---
 proc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/proc.c b/proc.c
index cff8e9e7af3..d075b7382e6 100644
--- a/proc.c
+++ b/proc.c
@@ -2699,7 +2699,7 @@ method_def_min_max_arity(const rb_method_definition_t *def, int *max) https://github.com/ruby/ruby/blob/trunk/proc.c#L2699
 }
 
 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) https://github.com/ruby/ruby/blob/trunk/proc.c#L2708
 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) https://github.com/ruby/ruby/blob/trunk/proc.c#L2969
         break;
     }
 
-    return rb_unnamed_parameters(method_def_aritry(def));
+    return rb_unnamed_parameters(method_def_arity(def));
 
 }
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]