Skip to content

Commit 24680a7

Browse files
committed
cmd/compile/internal/syntax: replace bytes.Compare call with bytes.Equal
Signed-off-by: guoguangwu <[email protected]>
1 parent 6133c1e commit 24680a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/syntax/parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func verifyPrint(t *testing.T, filename string, ast1 *File) {
186186
}
187187
bytes2 := buf2.Bytes()
188188

189-
if bytes.Compare(bytes1, bytes2) != 0 {
189+
if !bytes.Equal(bytes1, bytes2) {
190190
fmt.Printf("--- %s ---\n", filename)
191191
fmt.Printf("%s\n", bytes1)
192192
fmt.Println()

0 commit comments

Comments
 (0)