зеркало из https://github.com/github/ruby.git
vm_eval.c: should be singular
* vm_eval.c (raise_method_missing): "names" should be singular. pointed out by Filip Bartuzi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e25f9ceddf
Коммит
2c357a5574
|
@ -1,3 +1,8 @@
|
|||
Thu Sep 3 17:54:26 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_eval.c (raise_method_missing): "names" should be singular.
|
||||
pointed out by Filip Bartuzi.
|
||||
|
||||
Thu Sep 3 17:50:09 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (rb_raw_obj_info): should support IMEMO/iseq.
|
||||
|
|
|
@ -694,7 +694,7 @@ raise_method_missing(rb_thread_t *th, int argc, const VALUE *argv, VALUE obj,
|
|||
const char *format = 0;
|
||||
|
||||
if (UNLIKELY(argc == 0)) {
|
||||
rb_raise(rb_eArgError, "no method names given");
|
||||
rb_raise(rb_eArgError, "no method name given");
|
||||
}
|
||||
else if (UNLIKELY(!SYMBOL_P(argv[0]))) {
|
||||
const VALUE e = rb_eArgError; /* TODO: TypeError? */
|
||||
|
|
Загрузка…
Ссылка в новой задаче