[DOC] Mention that Enumerable#each_with_index calls self.each

This commit is contained in:
Alan Wu 2024-10-10 12:20:37 -04:00
Родитель 25c4629ec3
Коммит 5f3e9f185d
1 изменённых файлов: 2 добавлений и 1 удалений

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 = {}