summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Kisiel <kamil@kamilkisiel.net>2013-01-02 11:06:34 +0400
committerKamil Kisiel <kamil@kamilkisiel.net>2013-01-02 11:06:34 +0400
commit6186150e83a63fbc943913bc96d4528460d79a28 (patch)
tree23de390e7dd8a187fb65b9f02497ef183f0ea11e
parent74772485ec34b39cc2641ddcd3fa6f68553b1d4b (diff)
parentd77f52d17e8509ad9a36c0ed84fdcfdaefbe82be (diff)
Merge pull request #2 from jtdowney/master
Fix description for Encode
-rw-r--r--securecookie.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/securecookie.go b/securecookie.go
index ce5d09f..892b412 100644
--- a/securecookie.go
+++ b/securecookie.go
@@ -118,8 +118,8 @@ func (s *SecureCookie) BlockFunc(f func([]byte) (cipher.Block, error)) *SecureCo
// Encode encodes a cookie value.
//
-// It decodes, verifies a message authentication code, optionally decrypts and
-// finally deserializes the value.
+// It serializes, optionally encrypts, signs with a message authentication code, and
+// finally encodes the value.
//
// The name argument is the cookie name. It is stored with the encoded value.
// The value argument is the value to be encoded. It can be any value that can