x/website: out of date docs in effective go #68808
Labels
Documentation
Issues describing a change to documentation.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
website
Milestone
Hi, effective go still references having to do e.g.
req := req
in 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 := req
in a for loop.The text was updated successfully, but these errors were encountered: