From 6cf536bfdff5fa7745d1d75aca5b611b3d66c3ea Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Sun, 13 Nov 2016 11:26:27 -0700 Subject: [PATCH] Remove superfluous TODO and remove underscore in method name in example code --- CommonMistakes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonMistakes.md b/CommonMistakes.md index debfa0c6..f04ee3f0 100644 --- a/CommonMistakes.md +++ b/CommonMistakes.md @@ -10,10 +10,10 @@ When new programmers start using Go or when old Go programmers start using a new # Using goroutines on loop iterator variables -When iterating in Go, one might also be tempted to use goroutines to process data in parallel. For example, you might write the following code (TODO: What is wrong with example from the following code?): +When iterating in Go, one might also be tempted to use goroutines to process data in parallel. For example, you might write the following code: ```go for val := range values { - go val.my_method() + go val.MyMethod() } ```