diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2023-09-19 19:34:50 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2023-09-19 19:34:50 -0400 |
| commit | 38e98cbb6a29f984795504fbc64872526edd1197 (patch) | |
| tree | 4af170ccf1cdabbd9049678c28462ed42564d7d6 | |
| parent | 4c1e367039d1a35f7eed8d2d80ce7eff2d69fcec (diff) | |
Fix typo in "refinements"
| -rw-r--r-- | vm_eval.c | 2 | ||||
| -rw-r--r-- | vm_method.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -545,7 +545,7 @@ rb_call0(rb_execution_context_t *ec, RB_DEBUG_COUNTER_INC(call0_public); const rb_callable_method_entry_t *cc_cme = cc ? vm_cc_cme(cc) : NULL; - const rb_callable_method_entry_t *cme = callable_method_entry_refeinements0(CLASS_OF(recv), mid, NULL, true, cc_cme); + const rb_callable_method_entry_t *cme = callable_method_entry_refinements0(CLASS_OF(recv), mid, NULL, true, cc_cme); call_status = rb_method_call_status(ec, cme, scope, self); if (UNLIKELY(call_status != MISSING_NONE)) { diff --git a/vm_method.c b/vm_method.c index b081ddd1b9..cd5543f042 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1445,7 +1445,7 @@ rb_method_entry_with_refinements(VALUE klass, ID id, VALUE *defined_class_ptr) } static const rb_callable_method_entry_t * -callable_method_entry_refeinements0(VALUE klass, ID id, VALUE *defined_class_ptr, bool with_refinements, +callable_method_entry_refinements0(VALUE klass, ID id, VALUE *defined_class_ptr, bool with_refinements, const rb_callable_method_entry_t *cme) { if (cme == NULL || LIKELY(cme->def->type != VM_METHOD_TYPE_REFINED)) { @@ -1462,7 +1462,7 @@ static const rb_callable_method_entry_t * callable_method_entry_refinements(VALUE klass, ID id, VALUE *defined_class_ptr, bool with_refinements) { const rb_callable_method_entry_t *cme = callable_method_entry(klass, id, defined_class_ptr); - return callable_method_entry_refeinements0(klass, id, defined_class_ptr, with_refinements, cme); + return callable_method_entry_refinements0(klass, id, defined_class_ptr, with_refinements, cme); } const rb_callable_method_entry_t * |
