Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Commit-Queue: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
- Loading branch information