Skip to content

Commit fc9f02c

Browse files
tomocygopherbot
authored andcommitted
image: use Rectangle{} instead of ZR
ZR is deprecated, so replace it with the literal Rectangle to represent the zero value. Change-Id: I68c0ffec808eaed1e8c352bf364d295c0041594e GitHub-Last-Rev: 8504728 GitHub-Pull-Request: #69136 Reviewed-on: https://go-review.googlesource.com/c/go/+/609516 Reviewed-by: Nigel Tao <[email protected]> Reviewed-by: Nigel Tao <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 239666c commit fc9f02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image/geom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (r Rectangle) Intersect(s Rectangle) Rectangle {
169169
//
170170
// if max(r0.Min.X, s0.Min.X) >= min(r0.Max.X, s0.Max.X) || likewiseForY { etc }
171171
if r.Empty() {
172-
return ZR
172+
return Rectangle{}
173173
}
174174
return r
175175
}

0 commit comments

Comments
 (0)