Skip to content

Commit 7594cf4

Browse files
Fixed loop in display code
1 parent 57aac36 commit 7594cf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/chapter2/search/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626

2727
// Wait for the result from each goroutine
2828
go func() {
29-
for site := 0; site < len(sites); site++ {
29+
for {
3030
found := <-result
3131
log.Printf("%s:\n%s\n\n", found.Field, found.Content)
3232
}

0 commit comments

Comments
 (0)