Skip to content

Commit

Permalink
chore: fix some function name in comment
Browse files Browse the repository at this point in the history
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
  • Loading branch information
lvyaoting committed Dec 5, 2024
1 parent 2549592 commit a6b5b1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/protocols/utils/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const (
Sd
)

// GenerateVariables will create default variables with context args
// GenerateVariablesWithContextArgs will create default variables with context args
func GenerateVariablesWithContextArgs(input *contextargs.Context, trailingSlash bool) map[string]interface{} {
parsed, err := urlutil.Parse(input.MetaInput.Input)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutils/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func RunNucleiBareArgsAndGetResults(debug bool, env []string, extra ...string) (
return parts, nil
}

// RunNucleiArgsAndGetResults returns result,and runtime errors
// RunNucleiWithArgsAndGetResults returns result,and runtime errors
func RunNucleiWithArgsAndGetResults(debug bool, args ...string) ([]string, error) {
cmd := exec.Command("./nuclei", args...)
cmd.Env = append(cmd.Env, ExtraEnvVars...)
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/http_probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
HttpSchemes = []string{"https", "http"}
)

// probeURL probes the scheme for a URL. first HTTPS is tried
// ProbeURL probes the scheme for a URL. first HTTPS is tried
// and if any errors occur http is tried. If none succeeds, probing
// is abandoned for such URLs.
func ProbeURL(input string, httpxclient *httpx.HTTPX) string {
Expand Down

0 comments on commit a6b5b1d

Please sign in to comment.