diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | variable.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Jan 29 00:30:44 2011 Yusuke Endoh <mame@tsg.ne.jp> + + * variable.c (set_const_visibility): fix typo. a patch from Tomoyuki + Chikanaga in [ruby-core:32919]. + Fri Jan 28 23:20:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create, diff --git a/variable.c b/variable.c index ab0cd7b592..f737973878 100644 --- a/variable.c +++ b/variable.c @@ -1895,7 +1895,7 @@ set_const_visibility(VALUE mod, int argc, VALUE *argv, rb_const_flag_t flag) if (rb_safe_level() >= 4 && !OBJ_UNTRUSTED(mod)) { rb_raise(rb_eSecurityError, - "Insecure: can't change method visibility"); + "Insecure: can't change constant visibility"); } for (i = 0; i < argc; i++) { |