mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Document that Array#index and find_index are aliases [ci skip]
This commit is contained in:
parent
6c66761c1f
commit
672213ef1c
Notes:
git
2020-02-26 03:43:42 +09:00
Merged: https://github.com/ruby/ruby/pull/2924 Merged-By: XrXr
1 changed files with 2 additions and 0 deletions
2
array.c
2
array.c
|
@ -1774,6 +1774,8 @@ rb_ary_fetch(int argc, VALUE *argv, VALUE ary)
|
|||
* a.index("b") #=> 1
|
||||
* a.index("z") #=> nil
|
||||
* a.index {|x| x == "b"} #=> 1
|
||||
*
|
||||
* Array#index is an alias for Array#find_index.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Reference in a new issue