diff --git a/README.md b/README.md index cf01c29..d31d1ab 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,13 @@ cf. [Fixing For Loops in Go 1.22](https://go.dev/blog/loopvar-preview) ```go for i, v := range []int{1, 2, 3} { - i := i // The copy of the 'for' variable "i" can be deleted \(Go 1\.22\+\) - v := v // The copy of the 'for' variable "v" can be deleted \(Go 1\.22\+\) + i := i // The copy of the 'for' variable "i" can be deleted (Go 1.22+) + v := v // The copy of the 'for' variable "v" can be deleted (Go 1.22+) _, _ = i, v } for i := 1; i <= 3; i++ { - i := i // The copy of the 'for' variable "i" can be deleted \(Go 1\.22\+\) + i := i // The copy of the 'for' variable "i" can be deleted (Go 1.22+) _ = i } ```