aboutsummaryrefslogtreecommitdiff
path: root/cookie.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-19 20:29:17 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-19 20:29:17 +0200
commitddfa9f5dc0026ea2b238b3fb6b0ee4ae1c620a7b (patch)
tree1c34dd8551873c8d09cd0b751b1465b61ed38615 /cookie.go
parentExport AcquireRequest, AcquireResponse, ReleaseRequest and ReleaseResponse (diff)
downloadfasthttp-ddfa9f5dc0026ea2b238b3fb6b0ee4ae1c620a7b.tar.gz
fasthttp-ddfa9f5dc0026ea2b238b3fb6b0ee4ae1c620a7b.tar.bz2
fasthttp-ddfa9f5dc0026ea2b238b3fb6b0ee4ae1c620a7b.zip
Clarify Append* return values
Diffstat (limited to 'cookie.go')
-rw-r--r--cookie.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cookie.go b/cookie.go
index 29bdf3f..4f9742f 100644
--- a/cookie.go
+++ b/cookie.go
@@ -142,8 +142,8 @@ func (c *Cookie) Reset() {
c.path = c.path[:0]
}
-// AppendBytes appends cookie representation to dst and returns dst
-// (maybe newly allocated).
+// AppendBytes appends cookie representation to dst and returns
+// the extended dst.
func (c *Cookie) AppendBytes(dst []byte) []byte {
if len(c.key) > 0 {
dst = appendQuotedArg(dst, c.key)