summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-08-08 09:26:07 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-08-08 09:26:07 -0400
commita24c607e30b5a74ef53e9a2c1e630dea46151a84 (patch)
tree85d0e44cb610d66c2f97e53dfe9e60192a6c57d3 /enum.c
parent1cb77f23046dbfd14703241e82bed2bcd69bf6a1 (diff)
downloadruby-a24c607e30b5a74ef53e9a2c1e630dea46151a84.tar.gz
[DOC] Fix formatting issue in Enumerable
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index e3dc177ba1..97215b627e 100644
--- a/enum.c
+++ b/enum.c
@@ -4808,7 +4808,7 @@ enum_compact(VALUE obj)
* - #grep_v: Returns elements selected by a given object
* or objects returned by a given block.
* - #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;
* returns the n-tuples or calls the block with each.
* - #cycle: Calls the block with each element, cycling repeatedly.