Skip to content

Conversation

@EduKav1813
Copy link

The current version's tests didn't work for me at the end of the section. I propose a fix.

The exact wording or maybe even the implementation may be improved/modified, but I think this should be covered in the tutorial.

resultChannel := make(chan result)

for _, url := range urls {
u := url
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It be better to add a Parameter in the function instead declaring the variable . Like

go func(url string) { resultChannel <- result{url, wc(url)}	}(url)
Signed-off-by: Eduard Kaverinskyi <eduard.kaverinskyi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants