]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix message typo
authorIkko Ashimine <eltociear@gmail.com>
Wed, 9 Dec 2020 14:17:56 +0000 (14:17 +0000)
committerKeith Randall <khr@golang.org>
Wed, 9 Dec 2020 16:38:26 +0000 (16:38 +0000)
occurences -> occurrences

Change-Id: Ia81671f5de8a24ddd303a77b4580e8c726f29122
GitHub-Last-Rev: 11f9ab9f8c2c9acd70bcf170930426547d9b63eb
GitHub-Pull-Request: golang/go#43097
Reviewed-on: https://go-review.googlesource.com/c/go/+/276612
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/logopt/logopt_test.go

index 51bab49518c079e09c84e813f9a3fb6c88d5af49..e121c1abd228638c7d7cacd46e06b1110ecadc24 100644 (file)
@@ -51,7 +51,7 @@ func want(t *testing.T, out string, desired string) {
 
 func wantN(t *testing.T, out string, desired string, n int) {
        if strings.Count(out, desired) != n {
-               t.Errorf("expected exactly %d occurences of %s in \n%s", n, desired, out)
+               t.Errorf("expected exactly %d occurrences of %s in \n%s", n, desired, out)
        }
 }