summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorChelsea Corvus (Battell) <chelsea.battell@gmail.com>2020-02-25 13:43:17 -0500
committerGitHub <noreply@github.com>2020-02-25 13:43:17 -0500
commit672213ef1ca2b71312084057e27580b340438796 (patch)
tree026c6ef425c185ac01073eccaccbd223c197d0f9 /array.c
parent6c66761c1f947a2c4b5953c8f40e59596648b586 (diff)
downloadruby-672213ef1ca2b71312084057e27580b340438796.tar.gz
Document that Array#index and find_index are aliases [ci skip]
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/array.c b/array.c
index c1f8071a21..d5650cfeed 100644
--- a/array.c
+++ b/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