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

doc/articles/image_package.html: fix x/y mistake

Fixes #4942.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7444047
This commit is contained in:
Rob Pike 2013-02-28 15:52:58 -08:00
parent 3a9fcc45f6
commit 2145cd51e3

View File

@ -194,7 +194,7 @@ way to iterate over an <code>Image</code> m's pixels looks like:
<pre>
b := m.Bounds()
for y := b.Min.Y; y &lt; b.Max.Y; y++ {
for x := b.Min.X; y &lt; b.Max.X; x++ {
for x := b.Min.X; x &lt; b.Max.X; x++ {
doStuffWith(m.At(x, y))
}
}