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:
parent
b7ec659b54
commit
a5a16eeaab
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user