From 3808d29e2001c374f3bcda32a42519d6c28e5d09 Mon Sep 17 00:00:00 2001 From: zverok Date: Sat, 21 Dec 2024 20:33:13 +0200 Subject: [PATCH] Fix extra 'warning:' prefix for chilled Symbol#to_s --- error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.c b/error.c index 4a31b8529c..d69a342a9b 100644 --- a/error.c +++ b/error.c @@ -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) ); }