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

ruby-changes:64945

From: Alan <ko1@a...>
Date: Tue, 19 Jan 2021 04:32:51 +0900 (JST)
Subject: [ruby-changes:64945] e812b36205 (master): Fix typo: invaldate -> invalidate

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

From e812b362059706d0fb4ce1ec4f8941383dda6166 Mon Sep 17 00:00:00 2001
From: Alan Wu <alanwu@r...>
Date: Mon, 18 Jan 2021 14:02:19 -0500
Subject: Fix typo: invaldate -> invalidate


diff --git a/vm_method.c b/vm_method.c
index 81920bb..aee5d61 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -129,7 +129,7 @@ rb_clear_constant_cache(void) https://github.com/ruby/ruby/blob/trunk/vm_method.c#L129
 }
 
 static void
-invaldate_negative_cache(ID mid, bool invalidate_cme)
+invalidate_negative_cache(ID mid, bool invalidate_cme)
 {
     const rb_callable_method_entry_t *cme;
     rb_vm_t *vm = GET_VM();
@@ -162,7 +162,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid) https://github.com/ruby/ruby/blob/trunk/vm_method.c#L162
 
         // invalidate CCs
         if (cc_tbl && rb_id_table_lookup(cc_tbl, mid, (VALUE *)&ccs)) {
-            if (NIL_P(ccs->cme->owner)) invaldate_negative_cache(mid, false);
+            if (NIL_P(ccs->cme->owner)) invalidate_negative_cache(mid, false);
             rb_vm_ccs_free(ccs);
             rb_id_table_delete(cc_tbl, mid);
             RB_DEBUG_COUNTER_INC(cc_invalidate_leaf_ccs);
@@ -211,7 +211,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid) https://github.com/ruby/ruby/blob/trunk/vm_method.c#L211
             RB_DEBUG_COUNTER_INC(cc_invalidate_tree);
         }
         else {
-            invaldate_negative_cache(mid, true);
+            invalidate_negative_cache(mid, true);
         }
     }
 }
-- 
cgit v0.10.2


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

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