From 2145cd51e330ea39c150615339166df298eb2202 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 28 Feb 2013 15:52:58 -0800 Subject: [PATCH] doc/articles/image_package.html: fix x/y mistake Fixes #4942. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7444047 --- doc/articles/image_package.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))
 	}
 }
-- 
2.48.1