aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/pktline/encoder.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-02-27 12:59:51 +0100
committerGitHub <noreply@github.com>2017-02-27 12:59:51 +0100
commita8f1e517e302569f11fced521c3f091997dac147 (patch)
tree16bbe6118340bfedf35080e66e44a76840fb3afb /plumbing/format/pktline/encoder.go
parent39f43b52a2bdfbc73703e2d09b575d49cd70ede8 (diff)
parent059a0be78399cdb0648bd514c5b179819d84403d (diff)
downloadgo-git-a8f1e517e302569f11fced521c3f091997dac147.tar.gz
Merge pull request #288 from ajnavarro/documentation/plumbing
plumbing: improve documentation (Fix #242)
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...),