Skip to content

Commit a37f358

Browse files
committed
Fixed typo
1 parent 694d066 commit a37f358

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
@@ -61,7 +61,7 @@ public final class Cake
6161
{
6262
return checkIf(bitesTaken, "bitesTaken").isNotNegative().
6363
and(checkIf(piecesLeft, "piecesLeft").isGreaterThan(3)).
64-
elseGetMessages();
64+
elseGetFailures();
6565
}
6666
}
6767
```
@@ -162,7 +162,7 @@ See the [API documentation](https://cowwoc.github.io/requirements.java/12.0/) fo
162162

163163
## Best practices
164164

165-
* Use `checkIf().elseGetMessages()` to return failure messages without throwing an exception.
165+
* Use `checkIf().elseGetFailures()` to return failure messages without throwing an exception.
166166
This is the fastest validation approach, ideal for web services.
167167
* To enhance the clarity of failure messages, you should provide parameter names, even when they are optional.
168168
In other words, favor `assert that(value, name)` over `assert that(value)`.

0 commit comments

Comments
 (0)