diff options
| author | guoguangwu <guoguangwug@gmail.com> | 2024-03-14 03:16:12 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-03-14 16:30:19 +0000 |
| commit | 90a2dcf1dbc0c3ed46a76547c3c9578a73aeb822 (patch) | |
| tree | c521458415a316c08ecf6c8ea54a1d4d3edb022f /src/cmd/compile/internal/syntax | |
| parent | 376be64922f38a78c42c62db189be911160367f8 (diff) | |
| download | go-90a2dcf1dbc0c3ed46a76547c3c9578a73aeb822.tar.xz | |
cmd/compile/internal/syntax: replace bytes.Compare call with bytes.Equal
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>
Diffstat (limited to 'src/cmd/compile/internal/syntax')
| -rw-r--r-- | src/cmd/compile/internal/syntax/parser_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/syntax/parser_test.go b/src/cmd/compile/internal/syntax/parser_test.go index 538278b3eb..b6c4b8fd56 100644 --- a/src/cmd/compile/internal/syntax/parser_test.go +++ b/src/cmd/compile/internal/syntax/parser_test.go @@ -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() |
