Skip to content

Commit 79174f4

Browse files
committed
fix toBeProductOf() documentation
1 parent 2a3bd78 commit 79174f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ $$\sum\limits_n^k x * 2$$
118118
#### `toBeProductOf()`
119119
$$\prod\limits_n^k x * 2$$
120120
```php
121-
expect(2)->toBeProdOf(static fn (int $x) => $x * 2, from: 0, to: 1);
122-
expect(3)->not->toBeProdOf(static fn (int $x) => $x * 2, from: 0, to: 1);
121+
expect(3715891200)->toBeProductOf(fn (int $x) => $x * 2, from: 1, to: 10);
122+
expect(1)->not->toBeProductOf(fn (int $x) => $x * 2, from: 1, to: 10);
123123
```

0 commit comments

Comments
 (0)