]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: consistently write "x | y" rather than "x|y" for unions
authorRobert Griesemer <gri@golang.org>
Fri, 2 Sep 2022 17:24:53 +0000 (10:24 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 2 Sep 2022 19:22:26 +0000 (19:22 +0000)
commit0fda8b19328edbfab880be6cb4033ff6c81eca6d
treec7c8b887a450302714fe30ad8eadbce3e06a796a
parent55ca6a20afb718972f0625ce971081f78efe10bf
go/types, types2: consistently write "x | y" rather than "x|y" for unions

Use the same spacing convention ("x | y") for union terms everythere,
matching the gofmt precedent.

Fixes #53279.

Change-Id: Ic3ccd7433b5f62402ba41cf05a75f9a1d99a8086
Reviewed-on: https://go-review.googlesource.com/c/go/+/410955
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
14 files changed:
src/cmd/compile/internal/types2/api_test.go
src/cmd/compile/internal/types2/termlist.go
src/cmd/compile/internal/types2/typestring.go
src/cmd/compile/internal/types2/typestring_test.go
src/go/types/api_test.go
src/go/types/termlist.go
src/go/types/typestring.go
src/go/types/typestring_test.go
src/internal/types/testdata/fixedbugs/issue45920.go
src/internal/types/testdata/fixedbugs/issue47411.go
src/internal/types/testdata/fixedbugs/issue47818.go
src/internal/types/testdata/fixedbugs/issue49179.go
src/internal/types/testdata/fixedbugs/issue51472.go
src/internal/types/testdata/spec/conversions.go