-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/website: Potential reference to wrong variable name "TitleValidator" #36779
Comments
Interested in sending a PR ? |
Change https://golang.org/cl/216479 mentions this issue: |
Don't worry I can close my PR now. I thought you may be not willing fix this by yourself. I am sorry 😵 |
No, no, it was an honest (non-sarcastic) Thank You for submitting your PR. Please, by all means please proceed with your PR. I was actually really impressed that someone was already actively working to resolve the issue. |
Fixes non-existent variable TitleValidator to be validPath in the closures, functions literal section. Fixes golang#36779
While reading this article:
https://golang.org/doc/articles/wiki/
I got to the point where the author is explaining how the
makeHandler
function uses the regex created earlier to validate thetitle
provided by the user.The actual variable name is
validPath
. From the way the explanation is written, it seems that the text should instead be:Many thanks for writing this article. I learned a lot and plan to reference it often as I continue to learn more about Go and writing web apps.
The text was updated successfully, but these errors were encountered: