website/_content/doc
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
..
articles doc/articles/race_detector: update for Go 1.22 loop variable changes 2024-09-05 00:50:20 +00:00
codewalk _content/doc/codewalk: fix more js problems 2023-11-09 07:17:35 +00:00
database _content/doc/database: fix typo in db query example 2024-04-11 13:32:33 +00:00
devel _content/doc/devel: fix typos 2024-06-28 14:55:15 +00:00
gopher _content/doc/gopher: update the license version 2024-05-29 18:15:06 +00:00
install website/_content/doc: add goroot tag example 2024-04-22 15:49:44 +00:00
modules _content: replace https://blog.golang.org/ links with /blog/ 2023-12-08 03:23:27 +00:00
mvs _content: move content/static/* to _content/* 2021-02-16 02:04:17 +00:00
play _content/doc/play: use the Nilakantha Series to compute pi 2022-09-22 14:05:23 +00:00
progs _content/doc: convert go1 release notes to markdown 2023-11-13 15:11:42 +00:00
security _content/doc/security/vuln: add section on non-Go versions 2024-07-08 20:39:10 +00:00
telemetry _content/doc/telemetry: use a solid background for dataflow diagram 2024-03-11 22:28:58 +00:00
tutorial _content/doc/tutorial: fix mixup between "module" and "workspace" 2024-06-04 15:27:29 +00:00
build-cover.md cmd/golangorg: check for invalid or broken links in served HTML 2023-12-08 03:23:52 +00:00
cmd.html _content/doc: update references to obsolete godoc 2024-04-11 17:57:20 +00:00
code.html all: fix and test for references to github.com/golang/go/issues and wiki 2023-12-20 17:31:44 +00:00
comment.md _content/doc/comment: mention "reports whether" idiom 2023-09-01 07:02:54 +00:00
conduct.md all: remove Path metadata-based redirects 2021-05-26 13:31:17 +00:00
contrib.md all: remove Path metadata-based redirects 2021-05-26 13:31:17 +00:00
contribute.html _content/doc: GOPATH and gopls instructions in contribution guide 2024-07-17 19:56:21 +00:00
copyright.md _content: update from CC-BY-3.0 to CC-BY-4.0 across the board 2022-11-02 20:14:38 +00:00
debugging_with_gdb.md all: remove Path metadata-based redirects 2021-05-26 13:31:17 +00:00
default.tmpl go.dev: merge go.dev/_content into root _content 2021-11-22 16:42:59 +00:00
diagnostics.html _content: replace https://blog.golang.org/ links with /blog/ 2023-12-08 03:23:27 +00:00
docs.md all: remove Path metadata-based redirects 2021-05-26 13:31:17 +00:00
download.js _content: download link on install doc goes to download page 2023-04-05 14:56:14 +00:00
editors.html all: fix and test for references to github.com/golang/go/issues and wiki 2023-12-20 17:31:44 +00:00
effective_go.html _content/doc/effective_go: remove discussion of loop variable reuse 2024-08-12 17:48:39 +00:00
faq.md _content/doc/faq: clarify the explanation of method sets 2024-07-31 23:33:06 +00:00
fuzz.md _content/security/fuzz: moved from _content/doc/fuzz 2022-09-06 13:36:51 +00:00
gc-guide.html _content/doc: update huge page details with max_ptes_none workarounds 2024-03-11 20:22:55 +00:00
gc-guide.js _content/doc/gc-guide: explicitly set font size for axis labels 2022-07-14 19:19:57 +00:00
gccgo_contribute.html _content: Breadcrumbs added to children pages. 2023-02-14 18:22:49 +00:00
gccgo_install.md all: avoid invalid gccgo_install url 2021-08-30 18:42:00 +00:00
gdb.html all: close HTML tags 2024-03-08 01:59:20 +00:00
go-get-install-deprecation.md _content: Breadcrumbs added to children pages. 2023-02-14 18:22:49 +00:00
go-logo-black.png _content/doc: copy docs from main Go repo 2021-02-16 02:04:20 +00:00
go-logo-blue.png _content/doc: copy docs from main Go repo 2021-02-16 02:04:20 +00:00
go-logo-white.png _content/doc: copy docs from main Go repo 2021-02-16 02:04:20 +00:00
go1.1.md _content/doc: convert most release notes to Markdown 2023-11-13 15:11:35 +00:00
go1.2.md cmd/golangorg: check for invalid or broken links in served HTML 2023-12-08 03:23:52 +00:00
go1.3.md _content/doc: use https in relnote links 2023-11-13 15:11:49 +00:00
go1.4.md _content/doc: convert most release notes to Markdown 2023-11-13 15:11:35 +00:00
go1.5.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.6.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.7.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.8.md cmd/golangorg: check for invalid or broken links in served HTML 2023-12-08 03:23:52 +00:00
go1.9.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.10.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.11.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.12.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.13.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.14.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.15.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.16.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.17.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.18.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.19.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.20.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.21.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.22.md doc: unify terminology to Standard library 2024-07-16 14:00:43 +00:00
go1.23.md _content/doc/go1.23: drop link to rangefunc wiki, add blog post 2024-08-27 22:55:15 +00:00
go1.24.md _content/doc: add go1.24.md placeholder 2024-07-22 19:03:06 +00:00
go1.md _content/doc: convert go1 release notes to markdown 2023-11-13 15:11:42 +00:00
go1compat.html _content: Breadcrumbs added to children pages. 2023-02-14 18:22:49 +00:00
go_faq.md all: remove Path metadata-based redirects 2021-05-26 13:31:17 +00:00
gopath_code.html _content: update for golang.org/x/example changes 2023-08-03 02:08:24 +00:00
hats.js _content: move content/static/* to _content/* 2021-02-16 02:04:17 +00:00
help.md all: remove Path metadata-based redirects 2021-05-26 13:31:17 +00:00
ie.css _content/doc: copy docs from main Go repo 2021-02-16 02:04:20 +00:00
index.html _content/doc: remove link to old blog post from a prominent place 2023-10-12 15:34:40 +00:00
install-source.md _content/doc: add redirect and fix links to /doc/install/source 2021-06-03 20:22:02 +00:00
install.html _content/doc/install.html: eliminate redundant link 2024-05-15 14:55:51 +00:00
manage-install.html all: fix a lot of typos 2022-06-15 16:32:49 +00:00
next.md cmd/golangorg: add doc/next page to preview draft release notes 2024-05-22 18:44:50 +00:00
pgo.md _content/doc: add additional pgo explanation 2024-02-21 16:15:34 +00:00
root.md all: remove Path metadata-based redirects 2021-05-26 13:31:17 +00:00
share.png _content/doc: copy docs from main Go repo 2021-02-16 02:04:20 +00:00
telemetry.md _content/doc: update telemetry documentation now that 1.23 is released 2024-09-03 20:32:59 +00:00
toolchain.md _content/doc: update go.dev/doc/toolchain's backport description 2023-08-15 17:10:11 +00:00
tos.html _content: redirect /doc/tos to /tos 2023-12-08 03:22:12 +00:00