From 3b0474134d4c80dd811f4e75a5bd2f26bbc1840c Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Tue, 22 Jul 2014 17:29:46 +1000 Subject: [PATCH] go-tour: fix bad printf call Fixes issue 177. TBR=campoy R=golang-codereviews, dave CC=golang-codereviews https://codereview.appspot.com/116080044 --- solutions/webcrawler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/webcrawler.go b/solutions/webcrawler.go index c5d2164..aa3ef94 100644 --- a/solutions/webcrawler.go +++ b/solutions/webcrawler.go @@ -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)