Commit a5a16eea authored by Nigel Tao's avatar Nigel Tao

image: fix typo in Rectangle.Sub comment.

Fixes #2724.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/5555043
parent b7ec659b
......@@ -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},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment