diff options
author | Chelsea Corvus (Battell) <chelsea.battell@gmail.com> | 2020-02-25 13:43:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 13:43:17 -0500 |
commit | 672213ef1ca2b71312084057e27580b340438796 (patch) | |
tree | 026c6ef425c185ac01073eccaccbd223c197d0f9 /array.c | |
parent | 6c66761c1f947a2c4b5953c8f40e59596648b586 (diff) | |
download | ruby-672213ef1ca2b71312084057e27580b340438796.tar.gz |
Document that Array#index and find_index are aliases [ci skip]
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 |