Skip to content

Commit efe33e3

Browse files
committed
fix docs in iteration
`sum` is not precise. Precise algorithms are Python `fsum` and Mir's [`sum!(Summation.precise)`](http://docs.mir.dlang.io/latest/mir_sum.html)
1 parent d6de61c commit efe33e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/algorithm/iteration.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@ See_Also:
25912591
to use in UFCS chains.
25922592
25932593
$(LREF sum) is similar to $(D reduce!((a, b) => a + b)) that offers
2594-
precise summing of floating point numbers.
2594+
pairwise summing of floating point numbers.
25952595
+/
25962596
template reduce(fun...) if (fun.length >= 1)
25972597
{

0 commit comments

Comments
 (0)