]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: fix wrong function name in the comment
authorhk <hk@tinyclouds.cn>
Sun, 11 Oct 2020 03:44:09 +0000 (03:44 +0000)
committerRobert Griesemer <gri@golang.org>
Sun, 11 Oct 2020 17:54:59 +0000 (17:54 +0000)
Change-Id: I2fc5cff7495b5db4eb8f286a5335787241f1a850
GitHub-Last-Rev: 1d226f14c8edbcb189fd1a37b11a82b9642f19ab
GitHub-Pull-Request: golang/go#41917
Reviewed-on: https://go-review.googlesource.com/c/go/+/261317
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Robert Griesemer <gri@golang.org>

src/cmd/compile/internal/gc/export.go

index 44bea2b1fd42b7c11f6e412e9642754803ebacf4..839c2c2c75271569dbae7b4e548531b996915956 100644 (file)
@@ -96,7 +96,7 @@ func importsym(ipkg *types.Pkg, s *types.Sym, op Op) *Node {
        return n
 }
 
-// pkgtype returns the named type declared by symbol s.
+// importtype returns the named type declared by symbol s.
 // If no such type has been declared yet, a forward declaration is returned.
 // ipkg is the package being imported
 func importtype(ipkg *types.Pkg, pos src.XPos, s *types.Sym) *types.Type {