cmd/compile/internal/syntax: replace bytes.Compare call with bytes.Equal

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guoguangwu 2024-03-14 11:02:48 +08:00
parent 6133c1e4e2
commit 24680a73ee
1 changed files with 1 additions and 1 deletions

View File

@ -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()