diff --git a/docs/index.md b/docs/index.md index 859532d..728d17d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1099,8 +1099,8 @@ There’s another solution: calling a closure (an anonymous function value that func f() error { var status string defer func() { - notify(status) incrementCounter(status) + notify(status) }() // The rest of the function unchanged