summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)