From: Cherry Mui Date: Tue, 15 Nov 2022 18:56:48 +0000 (-0500) Subject: crypto/rsa: fix loop variable capture in test X-Git-Tag: go1.20rc1~258 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=678cd71d11f927fcde0c1fa5d380860ce77f8391;p=gostls13.git crypto/rsa: fix loop variable capture in test Should fix builds. Change-Id: I309eccec8d08931b1ef8fee9327a08a97c6bf871 Reviewed-on: https://go-review.googlesource.com/c/go/+/450738 TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills Run-TryBot: Cherry Mui Reviewed-by: Filippo Valsorda --- diff --git a/src/crypto/rsa/rsa_test.go b/src/crypto/rsa/rsa_test.go index 0b1c8fb320..9db78cec61 100644 --- a/src/crypto/rsa/rsa_test.go +++ b/src/crypto/rsa/rsa_test.go @@ -148,6 +148,7 @@ func TestEverything(t *testing.T) { max = 2048 } for size := min; size <= max; size++ { + size := size t.Run(fmt.Sprintf("%d", size), func(t *testing.T) { t.Parallel() priv, err := GenerateKey(rand.Reader, size)