From: Rob Pike Date: Thu, 28 Feb 2013 23:52:58 +0000 (-0800) Subject: doc/articles/image_package.html: fix x/y mistake X-Git-Tag: go1.1rc2~765 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2145cd51e330ea39c150615339166df298eb2202;p=gostls13.git doc/articles/image_package.html: fix x/y mistake Fixes #4942. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7444047 --- 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 Image m's pixels looks like:
 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))
 	}
 }