]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: add missing copyright notice
authorDan Scales <danscales@google.com>
Tue, 18 Jan 2022 21:45:05 +0000 (13:45 -0800)
committerDan Scales <danscales@google.com>
Tue, 18 Jan 2022 23:19:04 +0000 (23:19 +0000)
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 <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/types/structuraltype.go

index 2d49e77aae4d6054c7c4864832a018784bb23af7..ee1341be210daf7b39e5d9066c7074d29df8b707 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
 package types
 
 // Implementation of structural type computation for types.
@@ -107,7 +111,7 @@ func specificTypes(t *Type) (list []term, inf bool) {
                default:
                        // m.Type is a single non-interface type, so r2 is just a
                        // one-element list, inf2 is false.
-                       r2 = []term{term{false, m.Type}}
+                       r2 = []term{{false, m.Type}}
                }
 
                if inf2 {