Skip to content

Commit cc2f99c

Browse files
testwillpull[bot]
authored andcommitted
cmd/compile/internal/syntax: replace bytes.Compare call with bytes.Equal
Change-Id: I783e02e215efaebf4936146c6aaa032634fdfa64 GitHub-Last-Rev: 24680a7 GitHub-Pull-Request: #66304 Reviewed-on: https://go-review.googlesource.com/c/go/+/571595 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent c987d1d commit cc2f99c

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)