Skip to content

Commit fbc7f33

Browse files
authored
Update README.md (#537)
Makes more sense to check in the Some an example when some of the values are present but not every one of them
1 parent bc0037c commit fbc7f33

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
@@ -2005,7 +2005,7 @@ Returns true if at least 1 element of a subset is contained into a collection.
20052005
If the subset is empty Some returns false.
20062006

20072007
```go
2008-
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{0, 2})
2008+
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{0, 6})
20092009
// true
20102010

20112011
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{-1, 6})

0 commit comments

Comments
 (0)