mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
Fix typo in rb_bug message for unreachable code
This commit is contained in:
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
2
gc.c
|
@ -4166,7 +4166,7 @@ rb_gc_vm_weak_table_foreach(vm_table_foreach_callback_func callback,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case RB_GC_VM_WEAK_TABLE_COUNT:
|
case RB_GC_VM_WEAK_TABLE_COUNT:
|
||||||
rb_bug("Unreacheable");
|
rb_bug("Unreachable");
|
||||||
default:
|
default:
|
||||||
rb_bug("rb_gc_vm_weak_table_foreach: unknown table %d", table);
|
rb_bug("rb_gc_vm_weak_table_foreach: unknown table %d", table);
|
||||||
}
|
}
|
||||||
|
|
2
object.c
2
object.c
|
@ -378,7 +378,7 @@ init_copy(VALUE dest, VALUE obj)
|
||||||
RBASIC(dest)->flags |= RBASIC(obj)->flags & T_MASK;
|
RBASIC(dest)->flags |= RBASIC(obj)->flags & T_MASK;
|
||||||
switch (BUILTIN_TYPE(obj)) {
|
switch (BUILTIN_TYPE(obj)) {
|
||||||
case T_IMEMO:
|
case T_IMEMO:
|
||||||
rb_bug("Unreacheable");
|
rb_bug("Unreachable");
|
||||||
break;
|
break;
|
||||||
case T_CLASS:
|
case T_CLASS:
|
||||||
case T_MODULE:
|
case T_MODULE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue