johnwahba / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

The solution for the slices exercise is incorrect #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the current repository, gotour/solutions/slices.go of revision 
"afef612d0519" is like (line 15 ~ 19):

        for y := range p {
                for x, row := range p[y] {
                        row[x] = uint8(x * y)
                }
        }

But it should be:
        for y := range p {
                row := p[y]
                for x := range row {
                        row[x] = uint8(x * y)
                }
        }

Original issue reported on code.google.com by Ken...@gmail.com on 23 Nov 2012 at 6:41

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f486f33778cf.

Original comment by campoy@golang.org on 28 Nov 2012 at 7:09