diff --git a/index.md b/index.md index 6025506d..b0e8aece 100644 --- a/index.md +++ b/index.md @@ -94,9 +94,7 @@ Goroutines are fully supported by GopherJS. The only restriction is that you nee ```go js.Global.Get("myButton").Call("addEventListener", "click", func() { - go func() { - someBlockingFunction() - }() + go someBlockingFunction() }) ```