1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

* range.c (range_bsearch): ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2013-01-30 06:07:29 +00:00
parent a7938af19c
commit 69adf990e1
2 changed files with 2 additions and 2 deletions

View file

@ -2463,7 +2463,7 @@ rb_ary_bsearch(VALUE ary)
} }
else { else {
rb_raise(rb_eTypeError, "wrong argument type %s" 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)); rb_obj_classname(v));
} }
if (smaller) { if (smaller) {

View file

@ -596,7 +596,7 @@ range_bsearch(VALUE range)
} \ } \
else { \ else { \
rb_raise(rb_eTypeError, "wrong argument type %s" \ 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)); \ rb_obj_classname(v)); \
} \ } \
} while (0) } while (0)