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:
parent
3a9fcc45f6
commit
2145cd51e3
@ -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 < b.Max.Y; y++ {
|
||||
for x := b.Min.X; y < b.Max.X; x++ {
|
||||
for x := b.Min.X; x < b.Max.X; x++ {
|
||||
doStuffWith(m.At(x, y))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user