Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowwoc committed Sep 9, 2024
1 parent a850deb commit fc85601
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/Features.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ String province = "Florida";
List<String> provinces = Arrays.asList("Ontario", "Quebec", "Nova Scotia", "New Brunswick", "Manitoba",
"British Columbia", "Prince Edward Island", "Saskatchewan", "Alberta", "Newfoundland and Labrador");

List<ValidationFailure> failures = new ArrayList<>();
failures.addAll(checkIf(name, "name").length().isBetween(10, 30).elseGetFailures();
List<ValidationFailure> failures = checkIf(name, "name").length().isBetween(10, 30).elseGetFailures();
failures.addAll(checkIf(provinces, "provinces").contains(province).elseGetFailures());

for (ValidationFailure failure: failures)
Expand Down Expand Up @@ -178,7 +177,7 @@ When
a [String comparison](https://cowwoc.github.io/requirements.java/10.0/docs/api/com.github.cowwoc.requirements.java/com/github/cowwoc/requirements10/java/type/component/ObjectValidatorComponent#isEqualTo(java.lang.Object))
fails, the library outputs a diff of the values being compared.

Depending on the terminal capability, you will see a [Textual](Textual_Diff.md) or a colored diff.
Depending on the terminal capability, you will see a [textual](Textual_Diff.md) or a colored diff.

![colored-diff-example4.png](colored-diff-example4.png)

Expand Down

0 comments on commit fc85601

Please sign in to comment.