Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
go-tour: fix bad printf call
Browse files Browse the repository at this point in the history
Fixes issue 177.

TBR=campoy
R=golang-codereviews, dave
CC=golang-codereviews
https://codereview.appspot.com/116080044
  • Loading branch information
adg committed Jul 22, 2014
1 parent f931eb5 commit 3b04741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solutions/webcrawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func Crawl(url string, depth int, fetcher Fetcher) {
done <- true
}(u)
}
for i := range urls {
fmt.Printf("<- [%v] %v/%v Waiting for child %v.\n", url, i, len(urls))
for i, u := range urls {
fmt.Printf("<- [%v] %v/%v Waiting for child %v.\n", url, i, len(urls), u)
<-done
}
fmt.Printf("<- Done with %v\n", url)
Expand Down

0 comments on commit 3b04741

Please sign in to comment.