diff --git a/README.md b/README.md index 357eb991..0b00d129 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,8 @@ foreach ($veryLargeArray as $item) { trap($item)->times(3); } -// Dump only if the condition is true -trap($animal)->once()->if($var instanceof Anumal\Cat); +// Dump once if the condition is true +trap($animal)->once()->if($var instanceof Animal\Cat); ``` ---