]> Cypherpunks repositories - gostls13.git/commitdiff
image: fix typo in Rectangle.Sub comment.
authorNigel Tao <nigeltao@golang.org>
Tue, 17 Jan 2012 23:55:03 +0000 (10:55 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 17 Jan 2012 23:55:03 +0000 (10:55 +1100)
Fixes #2724.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/5555043

src/pkg/image/geom.go

index 667aee6259e320726d1ebd26a06b8192936dc8f8..e123483314c2e5148f7c6edec0db0030e8e1f423 100644 (file)
@@ -112,7 +112,7 @@ func (r Rectangle) Add(p Point) Rectangle {
        }
 }
 
-// Add returns the rectangle r translated by -p.
+// Sub returns the rectangle r translated by -p.
 func (r Rectangle) Sub(p Point) Rectangle {
        return Rectangle{
                Point{r.Min.X - p.X, r.Min.Y - p.Y},