Skip to content

Commit

Permalink
[ruby/prism] Freeze Prism::VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain authored and matzbot committed Jan 19, 2025
1 parent 65a7c69 commit f27ed98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prism/extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ Init_prism(void) {
/**
* The version of the prism library.
*/
rb_define_const(rb_cPrism, "VERSION", rb_str_new2(EXPECTED_PRISM_VERSION));
rb_define_const(rb_cPrism, "VERSION", rb_str_freeze(rb_str_new_cstr(EXPECTED_PRISM_VERSION)));

// First, the functions that have to do with lexing and parsing.
rb_define_singleton_method(rb_cPrism, "lex", lex, -1);
Expand Down

0 comments on commit f27ed98

Please sign in to comment.