From bf9c4580847ea9a1ba32723062c6610752a90263 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 9 Oct 2008 13:07:28 +0000 Subject: * variable.c (rb_mod_remove_cvar): fix r19711. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index 95f572baf..056a27128 100644 --- a/variable.c +++ b/variable.c @@ -1909,7 +1909,7 @@ rb_mod_class_variables(VALUE obj) * @@var = 99 * puts @@var * remove_class_variable(:@@var) - * puts(defined? @@var) + * p(defined? @@var) * end * * produces: @@ -1922,7 +1922,7 @@ VALUE rb_mod_remove_cvar(VALUE mod, VALUE name) { const ID id = rb_to_id(name); - st_data_t val, n; + st_data_t val, n = id; if (!rb_is_class_id(id)) { rb_name_error(id, "wrong class variable name %s", rb_id2name(id)); -- cgit