mirror of
https://github.com/samber/lo.git
synced 2026-04-22 15:37:14 +08:00
(fix) Correct misplaced Markdown codeblock in Some example (#862)
Tiny little fix to correct a Markdown formatting issue with the example for `lo.Some()`
This commit is contained in:
@@ -2958,14 +2958,13 @@ If the subset is empty Some returns false.
|
||||
```go
|
||||
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{0, 6})
|
||||
// true
|
||||
```
|
||||
|
||||
[[play](https://go.dev/play/p/Lj4ceFkeT9V)]
|
||||
|
||||
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{-1, 6})
|
||||
// false
|
||||
```
|
||||
|
||||
[[play](https://go.dev/play/p/Lj4ceFkeT9V)]
|
||||
|
||||
### SomeBy
|
||||
|
||||
Returns true if the predicate returns true for any of the elements in the collection.
|
||||
|
||||
Reference in New Issue
Block a user