diff options
author | Alan Wu <[email protected]> | 2024-10-10 12:20:37 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2024-10-10 12:32:47 -0400 |
commit | 5f3e9f185d354f17ba50510659fb3a766104e153 (patch) | |
tree | 19cfb5ed228a1aaff4d28bc46b15907d82b25018 /enum.c | |
parent | 25c4629ec33e49050f0b75f3f6407867bb5f27b3 (diff) |
[DOC] Mention that Enumerable#each_with_index calls self.each
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 = {} |