Skip to content

Commit c9cfc21

Browse files
DucMinhNealdas
authored andcommitted
docs(csrf): fix godoc typo in Generator default (tp -> to)
1 parent 54abc47 commit c9cfc21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware/csrf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type CSRFConfig struct {
5858
TokenLookup string `yaml:"token_lookup"`
5959

6060
// Generator defines a function to generate token.
61-
// Optional. Defaults tp randomString(TokenLength).
61+
// Optional. Defaults to randomString(TokenLength).
6262
Generator func() string
6363

6464
// Context key to store generated CSRF token into context.

0 commit comments

Comments
 (0)