Pārlūkot izejas kodu

Update comment for SetVariableDeault (NFC)

Raul Silvera 9 gadus atpakaļ
vecāks
revīzija
97bf370a04
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      internal/driver/commands.go

+ 2
- 2
internal/driver/commands.go Parādīt failu

@@ -68,8 +68,8 @@ func AddCommand(cmd string, format int, post PostProcessor, desc, usage string)
68 68
 	pprofCommands[cmd] = &command{format, post, false, desc, usage}
69 69
 }
70 70
 
71
-// SetDefault sets the default value for a pprof variable. This enables
72
-// extensions to set their own default values for variables.
71
+// SetVariableDefault sets the default value for a pprof
72
+// variable. This enables extensions to set their own defaults.
73 73
 func SetVariableDefault(variable, value string) {
74 74
 	if v := pprofVariables[variable]; v != nil {
75 75
 		v.value = value