docs: fix wrong variable name for mutable map example (#637)

This commit is contained in:
Ali Sunjaya
2025-05-27 16:11:51 +07:00
committed by GitHub
parent f2cfb22748
commit 2b57de74f4

View File

@@ -394,7 +394,7 @@ import lom "github.com/samber/lo/mutable"
list := []int{1, 2, 3, 4}
lom.Map(list, func(x int) int {
return i*2
return x*2
})
// []int{2, 4, 6, 8}
```