summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--vm_method.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 83db74252c..35869687f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/vm_method.c b/vm_method.c
index f15917e711..66c783ce2a 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -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));