Skip to content

Commit

Permalink
service/cloudfront/sign: Fix cloudfront example usage of SignWithPoli…
Browse files Browse the repository at this point in the history
…cy (#673)

Fixes #671 documentation typo by correcting the usage of `SignWithPolicy`
  • Loading branch information
cmoog authored Sep 30, 2020
1 parent e278d4d commit ffe8290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/cloudfront/sign/sign_cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func cookieURLScheme(u string) (string, error) {
//
// // Or get Signed cookies for a resource that will expire in 1 hour
// // and set path and domain of cookies
// cookies, err := s.Sign(policy, func(o *sign.CookieOptions) {
// cookies, err := s.SignWithPolicy(policy, func(o *sign.CookieOptions) {
// o.Path = "/"
// o.Domain = ".example.com"
// })
Expand Down

0 comments on commit ffe8290

Please sign in to comment.