1
0
Fork 0
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:
Chelsea Corvus (Battell) 2020-02-25 13:43:17 -05:00 committed by GitHub
parent 6c66761c1f
commit 672213ef1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2020-02-26 03:43:42 +09:00
Merged: https://github.com/ruby/ruby/pull/2924

Merged-By: XrXr

View file

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