[前][次][番号順一覧][スレッド一覧]

ruby-changes:41507

From: hsbt <ko1@a...>
Date: Tue, 19 Jan 2016 09:38:36 +0900 (JST)
Subject: [ruby-changes:41507] hsbt:r53580 (trunk): * vm_method.c: fix grammar in respond_to? warning.

hsbt	2016-01-19 09:39:12 +0900 (Tue, 19 Jan 2016)

  New Revision: 53580

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53580

  Log:
    * vm_method.c: fix grammar in respond_to? warning.
      [fix GH-1047]

  Modified files:
    trunk/ChangeLog
    trunk/vm_method.c
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 53579)
+++ vm_method.c	(revision 53580)
@@ -1939,8 +1939,8 @@ vm_respond_to(rb_thread_t *th, VALUE kla https://github.com/ruby/ruby/blob/trunk/vm_method.c#L1939
 	    }
 	    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));
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53579)
+++ ChangeLog	(revision 53580)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jan 19 09:38:27 2016  Nick Cox  <nick@n...>
+
+	* vm_method.c: fix grammar in respond_to? warning.
+	  [fix GH-1047]
+
 Mon Jan 18 14:37:07 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (parser_here_document): an escaped newline is not an

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]