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

ruby-changes:26936

From: marcandre <ko1@a...>
Date: Wed, 30 Jan 2013 15:08:54 +0900 (JST)
Subject: [ruby-changes:26936] marcandRe: r38988 (trunk): * array.c (rb_ary_bsearch): Fix r38986 (typo) [Bug #7726]

marcandre	2013-01-30 15:07:29 +0900 (Wed, 30 Jan 2013)

  New Revision: 38988

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38988

  Log:
    * array.c (rb_ary_bsearch): Fix r38986 (typo) [Bug #7726]
    
    * range.c (range_bsearch): ditto

  Modified files:
    trunk/array.c
    trunk/range.c

Index: array.c
===================================================================
--- array.c	(revision 38987)
+++ array.c	(revision 38988)
@@ -2463,7 +2463,7 @@ rb_ary_bsearch(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L2463
 	}
 	else {
 	    rb_raise(rb_eTypeError, "wrong argument type %s"
-		" (must respond be numeric, true, false or nil)",
+		" (must be numeric, true, false or nil)",
 		rb_obj_classname(v));
 	}
 	if (smaller) {
Index: range.c
===================================================================
--- range.c	(revision 38987)
+++ range.c	(revision 38988)
@@ -596,7 +596,7 @@ range_bsearch(VALUE range) https://github.com/ruby/ruby/blob/trunk/range.c#L596
 	} \
 	else { \
 	    rb_raise(rb_eTypeError, "wrong argument type %s" \
-		" (must respond be numeric, true, false or nil)", \
+		" (must be numeric, true, false or nil)", \
 		rb_obj_classname(v)); \
 	} \
     } while (0)

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

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