From b5aefe07e5afe2fd5d49c6a4219cc826b3e4e34e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 14 Oct 2025 11:40:26 +0200 Subject: all: remove unnecessary loop variable copies in tests Copying the loop variable is no longer necessary since Go 1.22. Change-Id: Iebb21dac44a20ec200567f1d786f105a4ee4999d Reviewed-on: https://go-review.googlesource.com/c/go/+/711640 Reviewed-by: Florian Lehner Auto-Submit: Damien Neil Reviewed-by: Dmitri Shuralyov Reviewed-by: Damien Neil Auto-Submit: Tobias Klauser LUCI-TryBot-Result: Go LUCI --- src/math/rand/default_test.go | 1 - 1 file changed, 1 deletion(-) (limited to 'src/math') diff --git a/src/math/rand/default_test.go b/src/math/rand/default_test.go index 0ba51b4dbd..25c24244c4 100644 --- a/src/math/rand/default_test.go +++ b/src/math/rand/default_test.go @@ -34,7 +34,6 @@ func TestDefaultRace(t *testing.T) { t.Parallel() for i := 0; i < 6; i++ { - i := i t.Run(strconv.Itoa(i), func(t *testing.T) { t.Parallel() cmd := testenv.Command(t, testenv.Executable(t), "-test.run=^TestDefaultRace$") -- cgit v1.3