website/_content/doc/articles
Ian Lance Taylor ac2f5a4e42 doc/articles/race_detector: update for Go 1.22 loop variable changes
One of the examples was no longer racy. Change the example
to use a variable declared outside of the loop, to make it racy.

Fixes golang/go#69261

Change-Id: I79d5c9372d4badbdaccdea53e8b395291805dc47
Reviewed-on: https://go-review.googlesource.com/c/website/+/610975
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-09-05 00:50:20 +00:00
..
wiki cmd/golangorg: check for invalid or broken links in served HTML 2023-12-08 03:23:52 +00:00
go_command.html _content: correct pkg.dev.go links to pkg.go.dev 2023-08-23 13:47:51 +00:00
index.html _content/doc: copy docs from main Go repo 2021-02-16 02:04:20 +00:00
race_detector.html doc/articles/race_detector: update for Go 1.22 loop variable changes 2024-09-05 00:50:20 +00:00