1
0
mirror of https://github.com/golang/go synced 2024-09-29 23:24:29 -06:00
This commit is contained in:
Jes Cok 2023-11-20 14:21:07 +08:00
parent 802b6f9da6
commit 7225ca3f7b

View File

@ -1656,7 +1656,7 @@ func (v Value) IsZero() bool {
}
// isZero For all zeros, performance is not as good as
// returning bytealg.Count(b, byte(0)) == len(b).
// return bytealg.Count(b, byte(0)) == len(b)
func isZero(b []byte) bool {
if len(b) == 0 {
return true