summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-10-10 12:20:37 -0400
committerAlan Wu <[email protected]>2024-10-10 12:32:47 -0400
commit5f3e9f185d354f17ba50510659fb3a766104e153 ()
tree19cfb5ed228a1aaff4d28bc46b15907d82b25018 /enum.c
parent25c4629ec33e49050f0b75f3f6407867bb5f27b3 (diff)
[DOC] Mention that Enumerable#each_with_index calls self.each
-rw-r--r--enum.c3
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;
* returns +self+:
*
* h = {}