From 603fcafdc33ea5aed55240020e7287597b6b2e01 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 Nov 2012 23:23:23 +0000 Subject: [PATCH] eval.c: fix message * eval.c (top_include): fix a warning message, main is not a class or module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e69e53921b..44e4aa1a47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 2 08:23:17 2012 Nobuyoshi Nakada + + * eval.c (top_include): fix a warning message, main is not a class or + module. + Fri Nov 2 04:41:33 2012 Nobuyoshi Nakada * lib/mkmf.rb (MakeMakefile#timestamp_file): use ! instead of %, a GNU diff --git a/eval.c b/eval.c index 9430e2bc67..08d20d2204 100644 --- a/eval.c +++ b/eval.c @@ -1385,8 +1385,7 @@ top_include(int argc, VALUE *argv, VALUE self) rb_secure(4); if (th->top_wrapper) { - rb_warning - ("main#include in the wrapped load is effective only in wrapper module"); + rb_warning("main.include in the wrapped load is effective only in wrapper module"); return rb_mod_include(argc, argv, th->top_wrapper); } return rb_mod_include(argc, argv, rb_cObject);