Fix doc comment for sumKbn (#15769)

Co-authored-by: b3liever <b3liever@yandex.com>
(cherry picked from commit 912d8f80ad)
This commit is contained in:
Antonis Geralis
2020-10-29 18:54:28 +02:00
committed by narimiran
parent 645200aa3d
commit 1b5b98c943

View File

@@ -10,7 +10,7 @@
func sumKbn*[T](x: openArray[T]): T =
## Kahan (compensated) summation: O(1) error growth, at the expense
## Kahan-Babuška-Neumaier summation: O(1) error growth, at the expense
## of a considerable increase in computational expense.
if len(x) == 0: return
var sum = x[0]