Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp: fix variable reuse bug in code actions
Taking the address of the variables defined by range in a for loop is not safe since they are reused. Get the address from the original slice. Change-Id: If7fbf3fdbfeeaf329f36e416642582002895bbce Reviewed-on: https://go-review.googlesource.com/c/tools/+/330649 Trust: Suzy Mueller <suzmue@golang.org> Run-TryBot: Suzy Mueller <suzmue@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
- Loading branch information