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:
parent
a7938af19c
commit
69adf990e1
2 changed files with 2 additions and 2 deletions
2
array.c
2
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) {
|
||||
|
|
2
range.c
2
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)
|
||||
|
|
Loading…
Reference in a new issue