]> Cypherpunks repositories - gostls13.git/commit
testing: remove redundant variable capture from subtest example
authorJake Bailey <jacob.b.bailey@gmail.com>
Sat, 22 Mar 2025 05:34:52 +0000 (22:34 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 24 Mar 2025 17:16:54 +0000 (10:16 -0700)
commit710476495a94892f1a07ca4a253101d1e00b4dec
tree6624984c5cc55b9be35658b05170230cfd6b4ace
parent2d2bcdd2ad83ba93e61747417d6865cdd88b32fe
testing: remove redundant variable capture from subtest example

Loop variable capturing hasn't been needed like this since Go 1.21;
remove it from the example.

Change-Id: I231dcfdb57832e32d524f156a605ba36d1c9d6d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/660176
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/testing/testing.go