summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2023-12-18 13:16:20 +0100
committerBenoit Daloze <[email protected]>2023-12-18 13:42:02 +0100
commitf6ad49b87c110b618632a4a258896e3f5673000b (patch)
tree22d752350ca51fb2ea482dcad5959348bcfc332f /shape.c
parentb2fc1b054e9c1a04c20c696f6889b6143e9b8592 (diff)
Use #initialize instead of `initialize` in shape perf warning
This is more consistent with other messages.
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shape.c b/shape.c
index c076c1abb0..f4308d63ba 100644
--- a/shape.c
+++ b/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
);