1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix formatting issue in Enumerable

This commit is contained in:
Peter Zhu 2022-08-08 09:26:07 -04:00
parent 1cb77f2304
commit a24c607e30

2
enum.c
View file

@ -4808,7 +4808,7 @@ enum_compact(VALUE obj)
* - #grep_v: Returns elements selected by a given object * - #grep_v: Returns elements selected by a given object
* or objects returned by a given block. * or objects returned by a given block.
* - #reduce, #inject: Returns the object formed by combining all elements. * - #reduce, #inject: Returns the object formed by combining all elements.
* - #sum: Returns the sum of the elements, using method +++. * - #sum: Returns the sum of the elements, using method <tt>+</tt>.
* - #zip: Combines each element with elements from other enumerables; * - #zip: Combines each element with elements from other enumerables;
* returns the n-tuples or calls the block with each. * returns the n-tuples or calls the block with each.
* - #cycle: Calls the block with each element, cycling repeatedly. * - #cycle: Calls the block with each element, cycling repeatedly.