diff --git a/docs/examples.md b/docs/examples.md index a929b0e..68dc32b 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -22,7 +22,7 @@ function findUser(int $id): Option return Option::from($user); // None if null, otherwise Some($user) } -$user = findUser(1)->expect('user exists.'); +$user = findUser(1)->expect('the user exists.'); // throws LogicException if it does not exist // do something safely with $user instance... // map the user found to a DTO or create a new one if not found