Fix typos

This commit is contained in:
Anant Prakash 2018-05-22 14:38:43 +05:30
parent 8a9102ff04
commit b42e78f5d1
No known key found for this signature in database
GPG key ID: C5D399F626523045

View file

@ -25,9 +25,9 @@ import (
const (
macaroonVersion = macaroon.V2
defaultDuration = 2 * 60
// UserPrefix is common prefix for every user_id caveat
// UserPrefix is a common prefix for every user_id caveat
UserPrefix = "user_id = "
// TimePrefix is common prefix for every expiry caveat
// TimePrefix is a common prefix for every expiry caveat
TimePrefix = "time < "
// Gen is a common caveat for every token
Gen = "gen = 1"
@ -107,7 +107,7 @@ func macaroonError(err error) error {
}
// serializeMacaroon takes a macaroon to be serialized.
// returns it's base64 encoded string, URL safe, which can be sent via web, email, etc.
// returns its base64 encoded string, URL safe, which can be sent via web, email, etc.
func serializeMacaroon(m macaroon.Macaroon) (string, error) {
bin, err := m.MarshalBinary()
if err != nil {