Fix typo in rb_bug message for unreachable code

This commit is contained in:
ydah 2025-06-15 21:09:34 +09:00 committed by Yudai Takada
parent ef66aef791
commit 251cfdfe22
Notes: git 2025-06-15 13:35:39 +00:00
2 changed files with 2 additions and 2 deletions

2
gc.c
View file

@ -4166,7 +4166,7 @@ rb_gc_vm_weak_table_foreach(vm_table_foreach_callback_func callback,
break;
}
case RB_GC_VM_WEAK_TABLE_COUNT:
rb_bug("Unreacheable");
rb_bug("Unreachable");
default:
rb_bug("rb_gc_vm_weak_table_foreach: unknown table %d", table);
}

View file

@ -378,7 +378,7 @@ init_copy(VALUE dest, VALUE obj)
RBASIC(dest)->flags |= RBASIC(obj)->flags & T_MASK;
switch (BUILTIN_TYPE(obj)) {
case T_IMEMO:
rb_bug("Unreacheable");
rb_bug("Unreachable");
break;
case T_CLASS:
case T_MODULE: