summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-12-20 09:05:44 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-12-20 09:28:45 +0100
commit7c2d8198625ca2e38835ad06ab47b4ea3afbc34b (patch)
tree84f312554f433ef76efd1a40799308d48121a617
parent4927f251481df57a209284bb2ad2b237468e7792 (diff)
Fix a grammar issue in the shape performance warning message
-rw-r--r--shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shape.c b/shape.c
index f4308d63ba..4cd4acd7f9 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 variables in a consistent order, for instance by eagerly defining them all in the #initialize method.",
rb_class_path(klass),
SHAPE_MAX_VARIATIONS
);