summaryrefslogtreecommitdiffstats
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
commit464de956d81a73e7412aea80a9720032ffe365ee (patch)
treeca0ff8178daf3c03bc87db829791b9d607a59e2c /array.c
parent90de7686f149b66a2f72de05cdc6f71d18b680e0 (diff)
downloadruby-464de956d81a73e7412aea80a9720032ffe365ee.tar.gz
ruby-464de956d81a73e7412aea80a9720032ffe365ee.tar.xz
ruby-464de956d81a73e7412aea80a9720032ffe365ee.zip
typo
git-svn-id: http://svn.ruby-lang.org/repos/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 f4627870e..7cedf1455 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);