diff --git a/array.c b/array.c index 271e2187e6..a7c74a2aa4 100644 --- a/array.c +++ b/array.c @@ -2463,7 +2463,7 @@ rb_ary_bsearch(VALUE ary) } 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) { diff --git a/range.c b/range.c index 693920b803..87e013d54a 100644 --- a/range.c +++ b/range.c @@ -596,7 +596,7 @@ range_bsearch(VALUE range) } \ 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)