diff --git a/doc/go_mem.html b/doc/go_mem.html
index 5dd48ff7fbd..143f3b2ff22 100644
--- a/doc/go_mem.html
+++ b/doc/go_mem.html
@@ -322,11 +322,11 @@ var limit = make(chan int, 3)
func main() {
for _, w := range work {
- go func() {
- limit <- 1
+ go func(w func()) {
+ limit <- 1
w()
- <-limit
- }()
+ <-limit
+ }(w)
}
select{}
}