diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-04 23:14:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-04 23:14:43 +0000 |
commit | fd4d1dde2f88547afadb8270143911adfd50d916 (patch) | |
tree | e910a24e975fd3ef5815c7bb304f2d9d682334d1 | |
parent | ba0ac946e9d1a3a94930e4538b34412d2af50466 (diff) |
* vm_method.c (rb_add_method, remove_method, rb_undef): fixed
minor grammatical errors in warnings. a patch from Run Paint
Run Run at [ruby-core:24141].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | vm_method.c | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -1,4 +1,8 @@ -Sun Jul 5 08:11:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> +Sun Jul 5 08:14:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * vm_method.c (rb_add_method, remove_method, rb_undef): fixed + minor grammatical errors in warnings. a patch from Run Pain + Run Run at [ruby-core:24141]. * vm_method.c (Init_eval_method): registers notimplement_body as a mark-object. diff --git a/vm_method.c b/vm_method.c index 3dff244cce..292146dab9 100644 --- a/vm_method.c +++ b/vm_method.c @@ -175,7 +175,7 @@ rb_add_method(VALUE klass, ID mid, NODE * node, int noex) if (mid == object_id || mid == id__send__) { if (node && nd_type(node) == RUBY_VM_METHOD_NODE) { - rb_warn("redefining `%s' may cause serious problem", + rb_warn("redefining `%s' may cause serious problems", rb_id2name(mid)); } } @@ -322,7 +322,7 @@ remove_method(VALUE klass, ID mid) if (OBJ_FROZEN(klass)) rb_error_frozen("class/module"); if (mid == object_id || mid == id__send__ || mid == idInitialize) { - rb_warn("removing `%s' may cause serious problem", rb_id2name(mid)); + rb_warn("removing `%s' may cause serious problems", rb_id2name(mid)); } if (st_lookup(RCLASS_M_TBL(klass), mid, &data)) { body = (NODE *)data; @@ -500,7 +500,7 @@ rb_undef(VALUE klass, ID id) } rb_frozen_class_p(klass); if (id == object_id || id == id__send__ || id == idInitialize) { - rb_warn("undefining `%s' may cause serious problem", rb_id2name(id)); + rb_warn("undefining `%s' may cause serious problems", rb_id2name(id)); } body = search_method(klass, id, &origin); if (!body || !body->nd_body) { |