1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix typo in document.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2004-10-07 02:33:37 +00:00
parent 790fa9041a
commit 2ed1cdbb0d

View file

@ -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