summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 1fc6a7c12c..a7cb6f66a9 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1301,7 +1301,7 @@ check_definition_visibility(VALUE mod, int argc, VALUE *argv)
me = rb_method_entry_without_refinements(lookup_mod, id, NULL);
if (me) {
- if (!inc_super && me->owner != mod) return METHOD_VISI_UNDEF;
+ if (!inc_super && me->owner != mod) return METHOD_VISI_UNDEF;
return METHOD_ENTRY_VISI(me);
}
return METHOD_VISI_UNDEF;