Changed ApplyFunc to Apply, fixed Cumsum example

This commit is contained in:
btracey
2013-07-22 16:57:44 -07:00
parent 71768457d8
commit 4601506cce
3 changed files with 5 additions and 7 deletions

View File

@@ -110,7 +110,7 @@ func ExampleCumsum() {
s := []float64{1, -2, 3, -4}
dst := make([]float64, len(s))
Cumprod(dst, s)
Cumsum(dst, s)
fmt.Println("dst = ", dst)
fmt.Println("s = ", s)