mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
Fix doc comment for sumKbn (#15769)
Co-authored-by: b3liever <b3liever@yandex.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user