mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use #initialize instead of initialize
in shape perf warning
This is more consistent with other messages.
This commit is contained in:
parent
b2fc1b054e
commit
f6ad49b87c
1 changed files with 1 additions and 1 deletions
2
shape.c
2
shape.c
|
@ -734,7 +734,7 @@ rb_shape_get_next(rb_shape_t *shape, VALUE obj, ID id)
|
|||
rb_category_warn(
|
||||
RB_WARN_CATEGORY_PERFORMANCE,
|
||||
"The class %"PRIsVALUE" reached %d shape variations, instance variables accesses will be slower and memory usage increased.\n"
|
||||
"It is recommended to define instance variable in a consistent order, for instance by eagerly defining them all in the `initialize` method.",
|
||||
"It is recommended to define instance variable in a consistent order, for instance by eagerly defining them all in the #initialize method.",
|
||||
rb_class_path(klass),
|
||||
SHAPE_MAX_VARIATIONS
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue