aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index e2e92ce74f..ec711add00 100644
--- a/parse.y
+++ b/parse.y
@@ -6100,8 +6100,8 @@ static void
magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
{
if (!comment_at_top(parser)) {
- rb_warning("encoding '%s' is ignored, valid only in the first line except for shebang line.",
- val);
+ rb_warningS("encoding '%s' is ignored, valid only in the first line except for shebang line.",
+ val);
return;
}
parser_set_encode(parser, val);