Skip to content

Commit 2b57de7

Browse files
authored
docs: fix wrong variable name for mutable map example (#637)
1 parent f2cfb22 commit 2b57de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ import lom "github.com/samber/lo/mutable"
394394

395395
list := []int{1, 2, 3, 4}
396396
lom.Map(list, func(x int) int {
397-
return i*2
397+
return x*2
398398
})
399399
// []int{2, 4, 6, 8}
400400
```

0 commit comments

Comments
 (0)