Skip to content

Commit

Permalink
Change lambda parameter name to order
Browse files Browse the repository at this point in the history
  • Loading branch information
arphox authored and JeremySkinner committed Feb 23, 2023
1 parent 7c9ebb2 commit c88720e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public class CustomerValidator : AbstractValidator<Customer>
{
public CustomerValidator()
{
RuleForEach(x => x.Orders).ChildRules(orders =>
RuleForEach(x => x.Orders).ChildRules(order =>
{
orders.RuleFor(x => x.Total).GreaterThan(0);
order.RuleFor(x => x.Total).GreaterThan(0);
});
}
}
Expand Down Expand Up @@ -115,4 +115,4 @@ RuleFor(x => x.Orders)
});
```

We recommend using 2 separate rules as this is clearer and easier to read, but the option of combining them is available with the `ForEach` method.
We recommend using 2 separate rules as this is clearer and easier to read, but the option of combining them is available with the `ForEach` method.

0 comments on commit c88720e

Please sign in to comment.