Skip to content

Commit 2b2e826

Browse files
Fixed variable name in anonymous function.
1 parent df9cd6d commit 2b2e826

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chapter7/patterns/pool/main/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ func main() {
6262
// Each goroutine needs its own copy of the query
6363
// value else they will all be sharing the same query
6464
// variable.
65-
go func(query int) {
66-
performQueries(query, p)
65+
go func(q int) {
66+
performQueries(q, p)
6767
wg.Done()
6868
}(query)
6969

0 commit comments

Comments
 (0)