diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-24 03:28:06 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-24 03:28:06 +0000 |
commit | 00ecebe6a97fd3a77a54f4bc4959ca0cb570f005 (patch) | |
tree | 4040c0e41cd2f23edc32d898e44d9b251a17ea78 /array.c | |
parent | 913f3204d0891ca53ab1adb9688b59e9afeb477f (diff) | |
download | ruby-00ecebe6a97fd3a77a54f4bc4959ca0cb570f005.tar.gz |
* array.c: Fix documentation for Array#index and #replace aliases
Based on a patch by @phiggins [Fixes GH-282]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1342,8 +1342,6 @@ rb_ary_fetch(int argc, VALUE *argv, VALUE ary) * a.index("b") #=> 1 * a.index("z") #=> nil * a.index { |x| x == "b" } #=> 1 - * - * This is an alias of Array#find_index. */ static VALUE @@ -3158,6 +3156,7 @@ rb_ary_transpose(VALUE ary) /* * call-seq: * ary.replace(other_ary) -> ary + * ary.initialize_copy(other_ary) -> ary * * Replaces the contents of +self+ with the contents of +other_ary+, * truncating or expanding if necessary. |