Modify comment syntax error (#2572)

This commit is contained in:
王哈哈
2022-11-04 21:55:17 +08:00
committed by GitHub
parent 3db64c7d47
commit dac3600b53
24 changed files with 32 additions and 32 deletions

View File

@@ -16,7 +16,7 @@ import (
)
var (
// Cmd describes a api command.
// Cmd describes an api command.
Cmd = &cobra.Command{
Use: "api",
Short: "Generate api related files",

View File

@@ -75,7 +75,7 @@ func (t PointerType) Documents() []string {
return nil
}
// Name returns a interface string, Its fixed value is interface{}
// Name returns an interface string, Its fixed value is interface{}
func (t InterfaceType) Name() string {
return t.RawName
}

View File

@@ -19,7 +19,7 @@ type (
Comment Doc
}
// ApiSpec describes a api file
// ApiSpec describes an api file
ApiSpec struct {
Info Info
Syntax ApiSyntax
@@ -129,7 +129,7 @@ type (
Value Type
}
// InterfaceType describes a interface for api
// InterfaceType describes an interface for api
InterfaceType struct {
RawName string
}