Skip to content

Commit d29bb49

Browse files
using var for make
1 parent 474c3e3 commit d29bb49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chapter2/sample/search/search.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func Run(searchTerm string) {
1717
}
1818

1919
// Create a buffered channel to receive match results to display.
20-
results := make(chan *Result, len(feeds))
20+
var results = make(chan *Result, len(feeds))
2121

2222
// Setup a wait group so we can process all the feeds.
2323
var waitGroup sync.WaitGroup

0 commit comments

Comments
 (0)