diff --git a/examples/closures/closures.go b/examples/closures/closures.go index 1fbe36b..195a1ef 100644 --- a/examples/closures/closures.go +++ b/examples/closures/closures.go @@ -14,7 +14,7 @@ import "fmt" func intSeq() func() int { i := 0 return func() int { - i += 1 + i++ return i } }