зеркало из https://github.com/github/ruby.git
[DOC] Mention that Enumerable#each_with_index calls self.each
This commit is contained in:
Родитель
25c4629ec3
Коммит
5f3e9f185d
3
enum.c
3
enum.c
|
@ -2998,7 +2998,8 @@ each_with_index_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memo))
|
|||
* each_with_index(*args) {|element, i| ..... } -> self
|
||||
* each_with_index(*args) -> enumerator
|
||||
*
|
||||
* With a block given, calls the block with each element and its index;
|
||||
* Invoke <tt>self.each</tt> with <tt>*args</tt>.
|
||||
* With a block given, the block receives each element and its index;
|
||||
* returns +self+:
|
||||
*
|
||||
* h = {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче