We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Prism::VERSION
1 parent 65a7c69 commit f27ed98Copy full SHA for f27ed98
prism/extension.c
@@ -1372,7 +1372,7 @@ Init_prism(void) {
1372
/**
1373
* The version of the prism library.
1374
*/
1375
- 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)));
1376
1377
// First, the functions that have to do with lexing and parsing.
1378
rb_define_singleton_method(rb_cPrism, "lex", lex, -1);
0 commit comments