From: Dan Scales Date: Tue, 18 Jan 2022 21:45:05 +0000 (-0800) Subject: cmd/compile: add missing copyright notice X-Git-Tag: go1.18beta2~79 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=626f13d0ca08f04f98e7a29a08028c21e38868c0;p=gostls13.git 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 Run-TryBot: Dan Scales TryBot-Result: Gopher Robot Reviewed-by: Matthew Dempsky --- diff --git a/src/cmd/compile/internal/types/structuraltype.go b/src/cmd/compile/internal/types/structuraltype.go index 2d49e77aae..ee1341be21 100644 --- a/src/cmd/compile/internal/types/structuraltype.go +++ b/src/cmd/compile/internal/types/structuraltype.go @@ -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 {