summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-20 14:00:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-20 21:43:30 +0900
commit8d242a33af19672977dcdcb8d32e9ad547bc0141 (patch)
tree3e15a99988ed8b084b6af40c9f94dae33a5082eb /vm_method.c
parent87217f26f120611d009f1b178d3cc5eaf1b8b515 (diff)
`rb_bug` prints a newline after the message
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c
index df22e735aa..d925e4f2fb 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -2113,7 +2113,7 @@ rb_method_definition_eq(const rb_method_definition_t *d1, const rb_method_defini
case VM_METHOD_TYPE_ALIAS:
break;
}
- rb_bug("rb_method_definition_eq: unsupported type: %d\n", d1->type);
+ rb_bug("rb_method_definition_eq: unsupported type: %d", d1->type);
}
static st_index_t
@@ -2148,7 +2148,7 @@ rb_hash_method_definition(st_index_t hash, const rb_method_definition_t *def)
case VM_METHOD_TYPE_ALIAS:
break; /* unreachable */
}
- rb_bug("rb_hash_method_definition: unsupported method type (%d)\n", def->type);
+ rb_bug("rb_hash_method_definition: unsupported method type (%d)", def->type);
}
st_index_t