Skip to content

Commit 626f13d

Browse files
committed
cmd/compile: add missing copyright notice
Also, simplify one expression (missed comment on previous review). Change-Id: Ic2d212442c2738e03c733336bb990e28c8912ca4 Reviewed-on: https://go-review.googlesource.com/c/go/+/379254 Trust: Dan Scales <[email protected]> Run-TryBot: Dan Scales <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent cf5d73e commit 626f13d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cmd/compile/internal/types/structuraltype.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2022 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package types
26

37
// Implementation of structural type computation for types.
@@ -107,7 +111,7 @@ func specificTypes(t *Type) (list []term, inf bool) {
107111
default:
108112
// m.Type is a single non-interface type, so r2 is just a
109113
// one-element list, inf2 is false.
110-
r2 = []term{term{false, m.Type}}
114+
r2 = []term{{false, m.Type}}
111115
}
112116

113117
if inf2 {

0 commit comments

Comments
 (0)