Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 1d4d21e

Browse files
committed
chore: some text improvements
1 parent f564562 commit 1d4d21e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/02-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function getWeatherTemperature(float $latitude, float $longitude, string $unitSy
6262

6363
### `assert`
6464

65-
This method throws a `ValidationException` when the first rule fails, otherwise nothing is returned.
65+
This method throws a `ValidationException` when a rule fails, otherwise nothing is returned.
6666

6767
```php
6868
/**
@@ -190,7 +190,7 @@ function calculateDiscount(float $price, float $discount, string $type): float
190190
All rules have at least one error message that can be customized (some rules have more than one error message for different case scenarios).
191191

192192
Every message has a list of dynamic parameters to help create an intuitive error text (like the invalid value, constraints, names, and others).
193-
To check what parameters and messages are available, look into the Options section in the page of the rule you are looking for.
193+
To check what parameters and messages are available, look into the Options section in the page of a rule.
194194
Go to [Rules](03-rules.md) to see all available rules.
195195

196196
The following example uses the [Choice](03x-rules-choice.md) rule with a custom error message:

0 commit comments

Comments
 (0)