doc: improve examples

This commit is contained in:
Samuel Berthe
2026-03-01 21:25:04 +01:00
parent ff0e293ce3
commit 6f42e74a11
3 changed files with 175 additions and 111 deletions
+1 -1
View File
@@ -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")
```