1
0
mirror of https://github.com/golang/go synced 2024-11-26 14:36:52 -07:00

go/doc: fix typo in comment

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu 2024-02-21 14:23:59 +08:00
parent d4112310a4
commit cd38bee191

View File

@ -388,7 +388,7 @@ func findDeclsAndUnresolved(body ast.Node, topDecls map[*ast.Object]ast.Decl, ty
for i := 0; i < len(depDecls); i++ { for i := 0; i < len(depDecls); i++ {
switch d := depDecls[i].(type) { switch d := depDecls[i].(type) {
case *ast.FuncDecl: case *ast.FuncDecl:
// Inpect type parameters. // Inspect type parameters.
inspectFieldList(d.Type.TypeParams) inspectFieldList(d.Type.TypeParams)
// Inspect types of parameters and results. See #28492. // Inspect types of parameters and results. See #28492.
inspectFieldList(d.Type.Params) inspectFieldList(d.Type.Params)