mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/prism] Freeze Prism::VERSION
Closes https://github.com/ruby/prism/pull/3422 https://github.com/ruby/prism/commit/b488a84253
This commit is contained in:
parent
65a7c69188
commit
f27ed98eff
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user