Skip to content

Commit d38bfd9

Browse files
committed
Clarify use of module id
1 parent cef7fe0 commit d38bfd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/c/cext/ruby.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3524,6 +3524,7 @@ VALUE rb_class_inherited(VALUE super, VALUE klass) {
35243524
}
35253525

35263526
VALUE rb_define_class_id(ID id, VALUE super) {
3527+
// id is deliberately ignored - see MRI
35273528
if (super == NULL) {
35283529
super = rb_cObject;
35293530
}
@@ -3535,6 +3536,7 @@ VALUE rb_module_new(void) {
35353536
}
35363537

35373538
VALUE rb_define_module_id(ID id) {
3539+
// id is deliberately ignored - see MRI
35383540
return rb_module_new();
35393541
}
35403542

0 commit comments

Comments
 (0)