Browse Source

Fix example Go code

dev/git-series/gccdum
Peter Bourgon 8 years ago
parent
commit
6b97e767b5
  1. 14
      examples/go/max_array.go

14
examples/go/max_array.go

@ -1,7 +1,11 @@
package main;
package main
func MaxArray(x []float64, y []float64) {
for i, c := range x {
if y[i] > c { x[i] = y[i] }
}
func MaxArray(x, y []float64) {
for i, c := range x {
if y[i] > c {
x[i] = y[i]
}
}
}
func main() {}

Loading…
Cancel
Save