diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-09 13:07:28 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-09 13:07:28 +0000 |
commit | ae4bc66b6412b35ac1f60d99d2402ae9293cf6ec (patch) | |
tree | f63a06c591b4d3c473251771f0a9c9b8630ee80b /variable.c | |
parent | 525b4535caa65d86495e83759239f4968c430fe8 (diff) | |
download | ruby-ae4bc66b6412b35ac1f60d99d2402ae9293cf6ec.tar.gz |
* variable.c (rb_mod_remove_cvar): fix r19711.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/variable.c b/variable.c index 95f572bafc..056a27128d 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 * * <em>produces:</em> @@ -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)); |