mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
doc: improve examples
This commit is contained in:
@@ -42,5 +42,5 @@ min, err := lo.MinByErr([]Point{{1}, {5}, {3}}, func(a, b Point) (bool, error) {
|
||||
}
|
||||
return a.X < b.X, nil
|
||||
})
|
||||
// {1}, error("cannot compare with 5")
|
||||
// {0}, error("cannot compare with 5")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user