-
Notifications
You must be signed in to change notification settings - Fork 18.9k
x/website: out of date docs in effective go #68808
Copy link
Copy link
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FixPendingIssues that have a fix which has not yet been reviewed or submitted.Issues that have a fix which has not yet been reviewed or submitted.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.website
Milestone
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FixPendingIssues that have a fix which has not yet been reviewed or submitted.Issues that have a fix which has not yet been reviewed or submitted.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.website
Hi, effective go still references having to do e.g.
req := reqin a for loop:This is no longer correct as of 1.21 (https://go.dev/blog/loopvar-preview)
What is the URL of the page with the issue?
https://go.dev/doc/effective_go
What is your user agent?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Screenshot
What did you do?
Visit the page
What did you expect to see?
Up-to-date docs explaining how since go1.22 you don't need to do the loopvar trick.
What did you see instead?
Docs explaining that you need to do
req := reqin a for loop.