Skip to content

Commit

Permalink
chore: fix function names in comment (#5008)
Browse files Browse the repository at this point in the history
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
  • Loading branch information
lvyaoting authored Apr 16, 2024
1 parent ea2e13a commit 8458218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/tmc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func enhanceTemplate(data string) (string, bool, error) {
return data, false, errorutil.New("template enhance failed")
}

// formatTemplateData formats template data using templateman format api
// formatTemplate formats template data using templateman format api
func formatTemplate(data string) (string, bool, error) {
resp, err := retryablehttp.DefaultClient().Post(fmt.Sprintf("%s/format", tmBaseUrl), "application/x-yaml", strings.NewReader(data))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion lib/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func WithScanStrategy(strategy string) NucleiSDKOptions {
// OutputWriter
type OutputWriter output.Writer

// UseWriter allows setting custom output writer
// UseOutputWriter allows setting custom output writer
// by default a mock writer is used with user defined callback
// if outputWriter is used callback will be ignored
func UseOutputWriter(writer OutputWriter) NucleiSDKOptions {
Expand Down

0 comments on commit 8458218

Please sign in to comment.