mirror of https://github.com/golang/go.git
cmd/compile/internal/syntax: replace bytes.Compare call with bytes.Equal
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
6133c1e4e2
commit
24680a73ee
|
|
@ -186,7 +186,7 @@ func verifyPrint(t *testing.T, filename string, ast1 *File) {
|
|||
}
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue