Commit 2145cd51 authored by Rob Pike's avatar Rob Pike

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

Fixes #4942.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7444047
parent 3a9fcc45
......@@ -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))
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment