Skip to content

Commit f27ed98

Browse files
Earlopainmatzbot
authored andcommitted
[ruby/prism] Freeze Prism::VERSION
Closes ruby/prism#3422 ruby/prism@b488a84253
1 parent 65a7c69 commit f27ed98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prism/extension.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ Init_prism(void) {
13721372
/**
13731373
* The version of the prism library.
13741374
*/
1375-
rb_define_const(rb_cPrism, "VERSION", rb_str_new2(EXPECTED_PRISM_VERSION));
1375+
rb_define_const(rb_cPrism, "VERSION", rb_str_freeze(rb_str_new_cstr(EXPECTED_PRISM_VERSION)));
13761376

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

0 commit comments

Comments
 (0)