Skip to content

Commit

Permalink
Freeze the version string
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 2, 2024
1 parent 839c1e8 commit aa79919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/io/console/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ InitVM_console(void)
{
/* :stopdoc: */
cConmode = rb_define_class_under(rb_cIO, "ConsoleMode", rb_cObject);
rb_define_const(cConmode, "VERSION", rb_str_new_cstr(IO_CONSOLE_VERSION));
rb_define_const(cConmode, "VERSION", rb_obj_freeze(rb_str_new_cstr(IO_CONSOLE_VERSION)));
rb_define_alloc_func(cConmode, conmode_alloc);
rb_undef_method(cConmode, "initialize");
rb_define_method(cConmode, "initialize_copy", conmode_init_copy, 1);
Expand Down

0 comments on commit aa79919

Please sign in to comment.