diff options
author | Robert Findley <rfindley@google.com> | 2021-08-16 09:36:49 -0400 |
---|---|---|
committer | Robert Findley <rfindley@google.com> | 2021-08-16 18:43:31 +0000 |
commit | 9ff61acbd76733ec065cb1185608aa5564f2685a (patch) | |
tree | 03d0cd8f1ca5679eb8df3250e33104852b5bfdfe /src/cmd/compile/internal/types2 | |
parent | fda8ee8b077dd8a5819cac7c52c3af1499a0674e (diff) | |
download | go-9ff61acbd76733ec065cb1185608aa5564f2685a.tar.gz go-9ff61acbd76733ec065cb1185608aa5564f2685a.zip |
go/types,types2: superficial changes to align types and types2
This CL contains an assortment of superficial fixes noticed while
self-reviewing the most recent stack of ports. It also makes a couple
adjustments to termlist_test.go, in both go/types and
cmd/compile/internal/types2.
Change-Id: I64c8cda5e1704e86ac11c6ffc86d55248f44ef79
Reviewed-on: https://go-review.googlesource.com/c/go/+/342490
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/types2')
-rw-r--r-- | src/cmd/compile/internal/types2/termlist_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/types2/termlist_test.go b/src/cmd/compile/internal/types2/termlist_test.go index 2f3772ddeb..ed1330d26f 100644 --- a/src/cmd/compile/internal/types2/termlist_test.go +++ b/src/cmd/compile/internal/types2/termlist_test.go @@ -11,7 +11,7 @@ import ( // maketl makes a term list from a string of the term list. func maketl(s string) termlist { - s = strings.Replace(s, " ", "", -1) + s = strings.ReplaceAll(s, " ", "") names := strings.Split(s, "∪") r := make(termlist, len(names)) for i, n := range names { @@ -20,7 +20,7 @@ func maketl(s string) termlist { return r } -func TestTermlistTop(t *testing.T) { +func TestTermlistAll(t *testing.T) { if !allTermlist.isAll() { t.Errorf("allTermlist is not the set of all types") } |