Change-Id: I783e02e215efaebf4936146c6aaa032634fdfa64
GitHub-Last-Rev:
24680a73ee22fe03d7e33c122c95ed1372a2b406
GitHub-Pull-Request: golang/go#66304
Reviewed-on: https://go-review.googlesource.com/c/go/+/571595
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
}
bytes2 := buf2.Bytes()
- if bytes.Compare(bytes1, bytes2) != 0 {
+ if !bytes.Equal(bytes1, bytes2) {
fmt.Printf("--- %s ---\n", filename)
fmt.Printf("%s\n", bytes1)
fmt.Println()