commit | 46811d27ce6b3753f70bc49423f4f448e613609d | [log] [tgz] |
---|---|---|
author | Matthew Dempsky <mdempsky@google.com> | Mon Jan 07 10:03:49 2013 +1100 |
committer | Andrew Gerrand <adg@golang.org> | Mon Jan 07 10:03:49 2013 +1100 |
tree | 359271b9278036fbf6611d282d852e6980b23231 | |
parent | 56961274bbbdac59ab23af9ad592dfac89c94869 [diff] |
src: Use bytes.Equal instead of bytes.Compare where possible. bytes.Equal is simpler to read and should also be faster because of short-circuiting and assembly implementations. Change generated automatically using: gofmt -r 'bytes.Compare(a, b) == 0 -> bytes.Equal(a, b)' gofmt -r 'bytes.Compare(a, b) != 0 -> !bytes.Equal(a, b)' R=golang-dev, dave, adg, rsc CC=golang-dev https://golang.org/cl/7038051