Fix extra 'warning:' prefix for chilled Symbol#to_s

This commit is contained in:
zverok 2024-12-21 20:33:13 +02:00 committed by Nobuyoshi Nakada
parent e76d2fddad
commit 3808d29e20
Notes: git 2024-12-22 06:08:37 +00:00

View File

@ -4075,7 +4075,7 @@ rb_warn_unchilled_symbol_to_s(VALUE obj)
{
rb_category_warn(
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)
);
}