Skip to content

Commit

Permalink
Fix a grammar issue in the shape performance warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Dec 20, 2023
1 parent 4927f25 commit 7c2d819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shape.c
Expand Up @@ -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
);
Expand Down

0 comments on commit 7c2d819

Please sign in to comment.