Skip to content

Commit 77a5f75

Browse files
committed
docs(csrf): fix godoc typo in Generator default (tp -> to)
1 parent 5aa876b commit 77a5f75

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)