1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:44:40 -07:00

life: fix for new slice rules

R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/2341049
This commit is contained in:
Graham Miller 2010-10-07 04:52:13 -04:00 committed by Russ Cox
parent 2a7019894a
commit cc5c2ee0ec

View File

@ -29,7 +29,7 @@ func main() {
} }
} }
life.Run(*gen, *dim, *dim, &a) life.Run(*gen, *dim, *dim, a[:])
for i := 0; i < *dim; i++ { for i := 0; i < *dim; i++ {
for j := 0; j < *dim; j++ { for j := 0; j < *dim; j++ {