[前][次][番号順一覧][スレッド一覧]

ruby-changes:72857

From: Peter <ko1@a...>
Date: Mon, 8 Aug 2022 22:27:12 +0900 (JST)
Subject: [ruby-changes:72857] a24c607e30 (master): [DOC] Fix formatting issue in Enumerable

https://git.ruby-lang.org/ruby.git/commit/?id=a24c607e30

From a24c607e30b5a74ef53e9a2c1e630dea46151a84 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Mon, 8 Aug 2022 09:26:07 -0400
Subject: [DOC] Fix formatting issue in Enumerable

---
 enum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) https://github.com/ruby/ruby/blob/trunk/enum.c#L4808
  * - #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.
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]