summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
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