diff --git a/proto/equal.go b/proto/equal.go index 49e16ba75..67948dd1d 100644 --- a/proto/equal.go +++ b/proto/equal.go @@ -33,7 +33,7 @@ func Equal(x, y Message) bool { if x == nil || y == nil { return x == nil && y == nil } - if reflect.TypeOf(x).Kind() == reflect.Pointer && x == y { + if reflect.TypeOf(x).Kind() == reflect.Ptr && x == y { // Avoid an expensive comparison if both inputs are identical pointers. return true }