summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-30 06:07:29 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-30 06:07:29 +0000
commit69adf990e1d05603b43c6da660870ea5b9ecef49 (patch)
tree110b97c7406a1f5abadebf6f01c20c92853db1ff
parenta7938af19c540c0f3bbd631889d936c2b0d5707b (diff)
* 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
-rw-r--r--array.c2
-rw-r--r--range.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 271e218..a7c74a2 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 693920b..87e013d 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)