1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:24:41 -07:00

image: fix typo in Rectangle.Sub comment.

Fixes #2724.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/5555043
This commit is contained in:
Nigel Tao 2012-01-18 10:55:03 +11:00
parent b7ec659b54
commit a5a16eeaab

View 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},