summaryrefslogtreecommitdiff
path: root/src/pkg/go/doc/doc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/go/doc/doc_test.go')
-rw-r--r--src/pkg/go/doc/doc_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/doc/doc_test.go b/src/pkg/go/doc/doc_test.go
index f957ede4a..8043038b4 100644
--- a/src/pkg/go/doc/doc_test.go
+++ b/src/pkg/go/doc/doc_test.go
@@ -123,7 +123,7 @@ func test(t *testing.T, mode Mode) {
}
// compare
- if bytes.Compare(got, want) != 0 {
+ if !bytes.Equal(got, want) {
t.Errorf("package %s\n\tgot:\n%s\n\twant:\n%s", pkg.Name, got, want)
}
}