aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/pktline/encoder.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/pktline/encoder.go')
-rw-r--r--plumbing/format/pktline/encoder.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plumbing/format/pktline/encoder.go b/plumbing/format/pktline/encoder.go
index 753b225..797b813 100644
--- a/plumbing/format/pktline/encoder.go
+++ b/plumbing/format/pktline/encoder.go
@@ -116,7 +116,8 @@ func (e *Encoder) EncodeString(payloads ...string) error {
}
// Encodef encodes a single pkt-line with the payload formatted as
-// the format specifier and the rest of the arguments suggest.
+// the format specifier. The rest of the arguments will be used in
+// the format string.
func (e *Encoder) Encodef(format string, a ...interface{}) error {
return e.EncodeString(
fmt.Sprintf(format, a...),