summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-04 07:40:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-04 07:40:52 +0000
commitaa8b38793f86e41ab7ece75010227b2674a622fb (patch)
treeca0ff8178daf3c03bc87db829791b9d607a59e2c /array.c
parent6f83a60747ab690b0265b827319f7af8533d13d5 (diff)
typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index f4627870e3..7cedf1455d 100644
--- a/array.c
+++ b/array.c
@@ -1564,7 +1564,7 @@ rb_ary_equal(ary1, ary2)
if (ary1 == ary2) return Qtrue;
if (TYPE(ary2) != T_ARRAY) {
- if (!rb_respond_to(ary2, rb_intern("to_str"))) {
+ if (!rb_respond_to(ary2, rb_intern("to_ary"))) {
return Qfalse;
}
return rb_equal(ary2, ary1);