From 059a0be78399cdb0648bd514c5b179819d84403d Mon Sep 17 00:00:00 2001 From: Antonio Jesus Navarro Perez Date: Thu, 23 Feb 2017 17:07:08 +0100 Subject: plumbing: improve documentation (Fix #242) --- plumbing/format/pktline/encoder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plumbing/format/pktline/encoder.go') 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...), -- cgit