Skip to content

docs(csrf): fix godoc typo in Generator default (tp -> to)#3026

Merged
aldas merged 1 commit into
labstack:masterfrom
DucMinhNe:fix-csrf-generator-godoc-typo
Jul 6, 2026
Merged

docs(csrf): fix godoc typo in Generator default (tp -> to)#3026
aldas merged 1 commit into
labstack:masterfrom
DucMinhNe:fix-csrf-generator-godoc-typo

Conversation

@DucMinhNe

Copy link
Copy Markdown
Contributor

Small godoc typo in the CSRF middleware config. The doc comment on CSRFConfig.Generator reads:

// Optional. Defaults tp randomString(TokenLength).

tp should be to. This renders on pkg.go.dev, so it's user-visible. One-character fix, no behavior change.

@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.31%. Comparing base (01b45be) to head (77a5f75).
⚠️ Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3026      +/-   ##
==========================================
+ Coverage   93.17%   93.31%   +0.13%     
==========================================
  Files          43       43              
  Lines        4501     4640     +139     
==========================================
+ Hits         4194     4330     +136     
- Misses        189      190       +1     
- Partials      118      120       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aldas aldas merged commit c9cfc21 into labstack:master Jul 6, 2026
10 checks passed
@aldas

aldas commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants