ruby-changes:65156
From: Nobuyoshi <ko1@a...>
Date: Sat, 6 Feb 2021 13:44:06 +0900 (JST)
Subject: [ruby-changes:65156] 94fb62e4a0 (master): [DOC] Fixed a markup in Array#sum [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=94fb62e4a0 From 94fb62e4a01975d61ad074f882068fdd7d6ed474 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 6 Feb 2021 13:40:50 +0900 Subject: [DOC] Fixed a markup in Array#sum [ci skip] --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/array.c b/array.c index 46c6d73..a73f418 100644 --- a/array.c +++ b/array.c @@ -7679,7 +7679,7 @@ finish_exact_sum(long n, VALUE r, VALUE v, int z) https://github.com/ruby/ruby/blob/trunk/array.c#L7679 * sum = init * array.each {|element| sum += element } * sum - * For example, <tt>[e1, e2, e3].sum</tt> returns </tt>init + e1 + e2 + e3</tt>. + * For example, <tt>[e1, e2, e3].sum</tt> returns <tt>init + e1 + e2 + e3</tt>. * * Examples: * a = [0, 1, 2, 3] -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/