Fix extra 'warning:' prefix for chilled Symbol#to_s
This commit is contained in:
parent
e76d2fddad
commit
3808d29e20
Notes:
git
2024-12-22 06:08:37 +00:00
2
error.c
2
error.c
@ -4075,7 +4075,7 @@ rb_warn_unchilled_symbol_to_s(VALUE obj)
|
|||||||
{
|
{
|
||||||
rb_category_warn(
|
rb_category_warn(
|
||||||
RB_WARN_CATEGORY_DEPRECATED,
|
RB_WARN_CATEGORY_DEPRECATED,
|
||||||
"warning: string returned by :%s.to_s will be frozen in the future", RSTRING_PTR(obj)
|
"string returned by :%s.to_s will be frozen in the future", RSTRING_PTR(obj)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user