From 3dc29f36e561f5d1586cb2db0dbabad1b4600829 Mon Sep 17 00:00:00 2001 From: dwrz Date: Fri, 5 Jun 2020 16:12:54 +0000 Subject: [PATCH] Document concurrency mutex example --- concurrency/cmd/mutex/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/concurrency/cmd/mutex/main.go b/concurrency/cmd/mutex/main.go index 3534b6c..67282a9 100644 --- a/concurrency/cmd/mutex/main.go +++ b/concurrency/cmd/mutex/main.go @@ -27,6 +27,7 @@ func main() { wg.Add(len(adjustments)) for _, adjustment := range adjustments { + // go = placed onto thread, not the stack. go func(adjustment int) { defer wg.Done()