Skip to content

Commit 88b281a

Browse files
authored
chore: fix some function names in comment (#5586)
Signed-off-by: linchizhen <[email protected]>
1 parent e0b2542 commit 88b281a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/tmc/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func formatTemplate(data string) (string, bool, error) {
300300
return data, false, errorutil.New("template format failed")
301301
}
302302

303-
// lintTemplateData lints template data using templateman lint api
303+
// lintTemplate lints template data using templateman lint api
304304
func lintTemplate(data string) (bool, error) {
305305
resp, err := retryablehttp.DefaultClient().Post(fmt.Sprintf("%s/lint", tmBaseUrl), "application/x-yaml", strings.NewReader(data))
306306
if err != nil {

pkg/input/formats/openapi/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ schemaLabel:
416416
return globalParams, nil
417417
}
418418

419-
// generateExampleFromSchema generates an example from a schema object
419+
// GenerateParameterFromSecurityScheme generates an example from a schema object
420420
func GenerateParameterFromSecurityScheme(scheme *openapi3.SecuritySchemeRef) (*openapi3.Parameter, error) {
421421
if !generic.EqualsAny(scheme.Value.Type, "http", "apiKey") {
422422
return nil, errorutil.NewWithTag("openapi", "unsupported security scheme type (%s) found in openapi file", scheme.Value.Type)

pkg/input/provider/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func NewInputProvider(opts InputOptions) (InputProvider, error) {
121121
}
122122
}
123123

124-
// SupportedFormats returns all supported input formats of nuclei
124+
// SupportedInputFormats returns all supported input formats of nuclei
125125
func SupportedInputFormats() string {
126126
return "list, " + http.SupportedFormats()
127127
}

0 commit comments

Comments
 (0)