DEV Community

Discussion on: Concurrency in Go

Collapse
 
rsuttles58 profile image
Rob Suttles

I found this article to be helpful as I am learning concurrency, however I have one slight correction as I followed your code.

In the second to last code snippet you shared, line 13 is "msg := <- ch" and should instead be "msg = <- ch", reassigning the value of msg or the code breaks.

Collapse
 
ghvstcode profile image
Oluwatobi

Hey Rob, I'm glad you found this article helpful! Thanks for pointing me to the error, it was a silly typo! will fix it right away