diff --git a/pkg/util/strings/escape.go b/pkg/util/strings/escape.go index ba7f8504b4..b82a0f23fb 100644 --- a/pkg/util/strings/escape.go +++ b/pkg/util/strings/escape.go @@ -27,7 +27,7 @@ func EscapePluginName(in string) string { return strings.Replace(in, "/", "~", -1) } -// EscapeQualifiedPluginName converts a plugin directory name in the format +// UnescapePluginName converts a plugin directory name in the format // vendor~pluginname into a proper vendor/pluginname. func UnescapePluginName(in string) string { return strings.Replace(in, "~", "/", -1) diff --git a/pkg/util/strings/line_delimiter.go b/pkg/util/strings/line_delimiter.go index 56e38302a1..8907869c9e 100644 --- a/pkg/util/strings/line_delimiter.go +++ b/pkg/util/strings/line_delimiter.go @@ -22,7 +22,8 @@ import ( "strings" ) -// A Line Delimiter is a filter that will +// LineDelimiter is a filter that will split input on lines +// and bracket each line with the delimiter string. type LineDelimiter struct { output io.Writer delimiter []byte