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:
parent
790fa9041a
commit
2ed1cdbb0d
1 changed files with 2 additions and 2 deletions
4
array.c
4
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
|
||||
|
|
Loading…
Reference in a new issue