The following example prints 12. I can't understand this output. Why did it print 12 and not 11?
func fA() func() int {
i := 0
return func() int {
i++
return i
}
}
func main() {
fB := fA()
fmt.Print(fB())
fmt.Print(fB())
}