aboutsummaryrefslogtreecommitdiff
path: root/doc/articles
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2013-02-28 15:52:58 -0800
committerRob Pike <r@golang.org>2013-02-28 15:52:58 -0800
commit2145cd51e330ea39c150615339166df298eb2202 (patch)
treeb9cb0eb39bc686c956de09f67d8d540779a115a3 /doc/articles
parent3a9fcc45f6938e2198d748a78f7c8b9c26692fad (diff)
downloadgo-2145cd51e330ea39c150615339166df298eb2202.tar.xz
doc/articles/image_package.html: fix x/y mistake
Fixes #4942. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7444047
Diffstat (limited to 'doc/articles')
-rw-r--r--doc/articles/image_package.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/articles/image_package.html b/doc/articles/image_package.html
index 24601b5749..ebe92a1ca9 100644
--- a/doc/articles/image_package.html
+++ b/doc/articles/image_package.html
@@ -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))
}
}