* 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
This commit is contained in:
zzak 2013-04-24 03:28:06 +00:00
Родитель 913f3204d0
Коммит 00ecebe6a9
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Wed Apr 24 12:27:00 2013 Zachary Scott <zachary@zacharyscott.net>
* array.c: Fix documentation for Array#index and #replace aliases
Based on a patch by @phiggins [Fixes GH-282]
Tue Apr 23 21:14:38 2013 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_inspect): refix r40413, on Ruby 1.9 usual character

Просмотреть файл

@ -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.