diff options
author | Dan Scales <danscales@google.com> | 2021-01-15 14:12:35 -0800 |
---|---|---|
committer | Dan Scales <danscales@google.com> | 2021-01-16 02:31:08 +0000 |
commit | a956a0e909e1d60c8d55339e5e591a9d1db885c4 (patch) | |
tree | 27b744813492ca6ac686bb2cf7b8ff18841f779c /src/cmd/compile/internal/types/type.go | |
parent | ab3b67abfd9bff30fc001c966ab121bacff3de9b (diff) | |
download | go-a956a0e909e1d60c8d55339e5e591a9d1db885c4.tar.gz go-a956a0e909e1d60c8d55339e5e591a9d1db885c4.zip |
[dev.regabi] cmd/compile, runtime: fix up comments/error messages from recent renames
Went in a semi-automated way through the clearest renames of functions,
and updated comments and error messages where it made sense.
Change-Id: Ied8e152b562b705da7f52f715991a77dab60da35
Reviewed-on: https://go-review.googlesource.com/c/go/+/284216
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types/type.go')
-rw-r--r-- | src/cmd/compile/internal/types/type.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/types/type.go b/src/cmd/compile/internal/types/type.go index 5176b96c02..0dfbef8af1 100644 --- a/src/cmd/compile/internal/types/type.go +++ b/src/cmd/compile/internal/types/type.go @@ -107,7 +107,7 @@ const ( // Types stores pointers to predeclared named types. // // It also stores pointers to several special types: -// - Types[TANY] is the placeholder "any" type recognized by substArgTypes. +// - Types[TANY] is the placeholder "any" type recognized by SubstArgTypes. // - Types[TBLANK] represents the blank variable's type. // - Types[TNIL] represents the predeclared "nil" value's type. // - Types[TUNSAFEPTR] is package unsafe's Pointer type. @@ -643,7 +643,7 @@ func SubstAny(t *Type, types *[]*Type) *Type { case TANY: if len(*types) == 0 { - base.Fatalf("substArgTypes: not enough argument types") + base.Fatalf("SubstArgTypes: not enough argument types") } t = (*types)[0] *types = (*types)[1:] |