Skip to content

Commit

Permalink
Update README.md (#537)
Browse files Browse the repository at this point in the history
Makes more sense to check in the Some an example when some of the values are present but not every one of them
  • Loading branch information
guyareco2 authored Sep 19, 2024
1 parent bc0037c commit fbc7f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ Returns true if at least 1 element of a subset is contained into a collection.
If the subset is empty Some returns false.

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

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

0 comments on commit fbc7f33

Please sign in to comment.