From d0f558381d5723728fd749adb3168562cd8ea7c8 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 7 Oct 2004 02:33:37 +0000 Subject: fix typo in document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array.c b/array.c index 19c16c52e..37f21f6d3 100644 --- a/array.c +++ b/array.c @@ -990,7 +990,7 @@ rb_ary_fetch(argc, argv, ary) * a = [ "a", "b", "c" ] * a.index("b") #=> 1 * a.index("z") #=> nil - * a.index{|x|x=="b") #=> 1 + * a.index{|x|x=="b"} #=> 1 */ static VALUE @@ -1030,7 +1030,7 @@ rb_ary_index(argc, argv, ary) * a = [ "a", "b", "b", "b", "c" ] * a.rindex("b") #=> 3 * a.rindex("z") #=> nil - * a.rindex{|x|x=="b") #=> 3 + * a.rindex{|x|x=="b"} #=> 3 */ static VALUE -- cgit