Skip to content

Commit 3bcfdcf

Browse files
authored
Merge pull request #3424 from Earlopain/freeze-version-constant
2 parents 817a95d + b488a84 commit 3bcfdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/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)