diff options
author | Chelsea Corvus (Battell) <[email protected]> | 2020-02-25 13:43:17 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-25 13:43:17 -0500 |
commit | 672213ef1ca2b71312084057e27580b340438796 (patch) | |
tree | 026c6ef425c185ac01073eccaccbd223c197d0f9 /array.c | |
parent | 6c66761c1f947a2c4b5953c8f40e59596648b586 (diff) |
Document that Array#index and find_index are aliases [ci skip]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2924
Merged-By: XrXr
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |