1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:54:46 -07:00

fix wrong function name in the comment

This commit is contained in:
hk 2020-10-11 11:22:34 +08:00
parent 3036b76df0
commit 1d226f14c8

View 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 {