Skip to content

Commit

Permalink
fix docs in iteration
Browse files Browse the repository at this point in the history
`sum` is not precise. Precise algorithms are Python `fsum` and Mir's [`sum!(Summation.precise)`](http://docs.mir.dlang.io/latest/mir_sum.html)
  • Loading branch information
9il committed Jul 26, 2016
1 parent d6de61c commit efe33e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/algorithm/iteration.d
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,7 @@ See_Also:
to use in UFCS chains.
$(LREF sum) is similar to $(D reduce!((a, b) => a + b)) that offers
precise summing of floating point numbers.
pairwise summing of floating point numbers.
+/
template reduce(fun...) if (fun.length >= 1)
{
Expand Down

0 comments on commit efe33e3

Please sign in to comment.