Skip to content

Commit

Permalink
Add missing parentheses in docs (lestrrat-go#562)
Browse files Browse the repository at this point in the history
* Add a missing parenthesis in docs

* Add missing parentheses in docs
  • Loading branch information
tchssk authored Jan 26, 2022
1 parent 10ea65a commit 11e868e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/01-jwt.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ To parse a JWT stored within a *http.Request object, use [`jwt.ParseRequest()`](
token, err := jwt.ParseRequest(req)

// Looks under "X-JWT-Token" header
token, err := jwt.ParseRequest(req, jwt.WithHeaderKey("X-JWT-Token")
token, err := jwt.ParseRequest(req, jwt.WithHeaderKey("X-JWT-Token"))

// Looks under "Authorization" and "X-JWT-Token" headers
token, err := jwt.ParseRequest(req, jwt.WithHeaderKey("Authorization"), jwt.WithFormKey("X-JWT-Token"))
Expand Down Expand Up @@ -122,7 +122,7 @@ that require a list of string, you should use `[]string` as the value
_, _ = jwt.NewBuilder().
Audience("foo").
Audience("bar").
Build
Build()

// CORRECT.
_, _ = jwt.NewBuilder().
Expand Down

0 comments on commit 11e868e

Please sign in to comment.