* 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:
nobu 2015-09-03 08:57:47 +00:00
Родитель e25f9ceddf
Коммит 2c357a5574
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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? */