Fix doc comment for sumKbn (#15769)

Co-authored-by: b3liever <b3liever@yandex.com>
This commit is contained in:
Antonis Geralis
2020-10-29 18:54:28 +02:00
committed by GitHub
parent 87a60c1b28
commit 912d8f80ad

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]