Skip to content

Commit c9d6fbd

Browse files
committed
consistent
1 parent cbc1343 commit c9d6fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ var_dump(\ArrayLookup\AtLeast::once($data, $filter)) // false
5252
// WITH key array included
5353

5454
$data = [1, 2, 3];
55-
$filter = static fn($datum, $key): bool => $datum === 1 && $key === 0;
55+
$filter = static fn($datum, $key): bool => $datum === 1 && $key >= 0;
5656

5757
var_dump(\ArrayLookup\AtLeast::once($data, $filter)) // true
5858

5959
$data = [1, 2, 3];
60-
$filter = static fn($datum, $key): bool => $datum === 4 && $key === 0;
60+
$filter = static fn($datum, $key): bool => $datum === 4 && $key >= 0;
6161

6262
var_dump(\ArrayLookup\AtLeast::once($data, $filter)) // false
6363
```

0 commit comments

Comments
 (0)