Skip to content

Commit c0add1d

Browse files
authored
Fix syntax error in README
1 parent f7647b4 commit c0add1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ e.g.
122122

123123
```go
124124
var s Foo
125-
for _, p := []int{10, 11, 12, 13} {
125+
for _, p := range []int{10, 11, 12, 13} {
126126
s.Bar(&p) // If s stores the pointer, it will be bug.
127127
}
128128
```

0 commit comments

Comments
 (0)