aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go')
-rw-r--r--src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go b/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go
index bebfbbec1e..3a458b0b77 100644
--- a/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go
+++ b/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go
@@ -91,7 +91,7 @@ func interactive(p *profile.Profile, o *plugin.Options) error {
}
continue
} else if okValues := groups[name]; okValues != nil {
- o.UI.PrintErr(fmt.Errorf("Unrecognized value for %s: %q. Use one of %s", name, value, strings.Join(okValues, ", ")))
+ o.UI.PrintErr(fmt.Errorf("unrecognized value for %s: %q. Use one of %s", name, value, strings.Join(okValues, ", ")))
continue
}
}
@@ -267,7 +267,7 @@ func parseCommandLine(input []string) ([]string, variables, error) {
}
}
if c == nil {
- return nil, nil, fmt.Errorf("Unrecognized command: %q", name)
+ return nil, nil, fmt.Errorf("unrecognized command: %q", name)
}
if c.hasParam {
@@ -294,7 +294,7 @@ func parseCommandLine(input []string) ([]string, variables, error) {
if outputFile == "" {
i++
if i >= len(args) {
- return nil, nil, fmt.Errorf("Unexpected end of line after >")
+ return nil, nil, fmt.Errorf("unexpected end of line after >")
}
outputFile = args[i]
}
@@ -407,7 +407,7 @@ func newCompleter(fns []string) func(string) string {
}
}
-// matchCommand attempts to match a string token to the prefix of a Command.
+// matchVariableOrCommand attempts to match a string token to the prefix of a Command.
func matchVariableOrCommand(v variables, token string) string {
token = strings.ToLower(token)
found := ""