diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Nov 2 08:23:17 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (top_include): fix a warning message, main is not a class or + module. + Fri Nov 2 04:41:33 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb (MakeMakefile#timestamp_file): use ! instead of %, a GNU @@ -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); |