mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_method.c: fix grammar in respond_to? warning.
[fix GH-1047] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d6d6116ac
commit
389a84fdbf
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 19 09:38:27 2016 Nick Cox <nick@nickcox.me>
|
||||
|
||||
* vm_method.c: fix grammar in respond_to? warning.
|
||||
[fix GH-1047]
|
||||
|
||||
Mon Jan 18 14:37:07 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_here_document): an escaped newline is not an
|
||||
|
|
|
@ -1939,8 +1939,8 @@ vm_respond_to(rb_thread_t *th, VALUE klass, VALUE obj, ID id, int priv)
|
|||
}
|
||||
else if (!NIL_P(ruby_verbose)) {
|
||||
VALUE location = rb_method_entry_location(me);
|
||||
rb_warn("%"PRIsVALUE"%c""respond_to?(:%"PRIsVALUE") is"
|
||||
" old fashion which takes only one parameter",
|
||||
rb_warn("%"PRIsVALUE"%c""respond_to?(:%"PRIsVALUE") uses"
|
||||
" the deprecated method signature, which takes one parameter",
|
||||
(FL_TEST(klass, FL_SINGLETON) ? obj : klass),
|
||||
(FL_TEST(klass, FL_SINGLETON) ? '.' : '#'),
|
||||
QUOTE_ID(id));
|
||||
|
|
Loading…
Add table
Reference in a new issue