Commit 07bff395 authored by skandhas's avatar skandhas

fix error output for Module#remove_const

parent 92cf2a0c
...@@ -1758,7 +1758,7 @@ mrb_mod_remove_const(mrb_state *mrb, mrb_value mod) ...@@ -1758,7 +1758,7 @@ mrb_mod_remove_const(mrb_state *mrb, mrb_value mod)
check_const_name(mrb, sym); check_const_name(mrb, sym);
val = mrb_iv_remove(mrb, mod, sym); val = mrb_iv_remove(mrb, mod, sym);
if (mrb_undef_p(val)) { if (mrb_undef_p(val)) {
mrb_name_error(mrb, sym, "instance variable %s not defined", mrb_sym2name(mrb, sym)); mrb_name_error(mrb, sym, "constant %s not defined", mrb_sym2name(mrb, sym));
} }
return val; return val;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment