1 parent 2b85ee2 commit fae32eeCopy full SHA for fae32ee
1 file changed
chapter2/sample/search/match.go
@@ -36,7 +36,7 @@ func Match(matcher Matcher, feed *Feed, searchTerm string, results chan<- *Resul
36
// are received by the individual goroutines.
37
func Display(results chan *Result) {
38
// The channel blocks until a result is written to the channel.
39
- // Once the channel is close the for loop terminates.
+ // Once the channel is closed the for loop terminates.
40
for result := range results {
41
log.Printf("%s:\n%s\n\n", result.Field, result.Content)
42
}
0 commit comments