From 26a90e4e36c01ae0d356d4e077b99c31cfcb4d1e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 5 Jun 2023 13:52:19 -0400 Subject: [PATCH] doc/go1.21: document GOEXPERIMENT=loopvar and invite feedback For #60078. Change-Id: I92ab1fc2f30e6bbaabd8e3e1b8834e6ddff2414d Reviewed-on: https://go-review.googlesource.com/c/go/+/500958 TryBot-Bypass: Russ Cox Reviewed-by: David Chase --- doc/go1.21.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/go1.21.html b/doc/go1.21.html index c6af33ac6d..f7ffc19117 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -145,10 +145,11 @@ Do not send CLs removing the interior tags from such phrases.

- + Go 1.21 includes a preview of a language change we are considering for a future version of Go: + making for loop variables per-iteration instead of per-loop, to avoid accidental sharing bugs. + For details about how to try that language change, see the LoopvarExperiment wiki page.

-

TODO: complete this section