Skip to content

Commit

Permalink
Fix IsLowerOrEqualsThan for int
Browse files Browse the repository at this point in the history
  • Loading branch information
lano.castro committed Jun 2, 2021
1 parent 87f93e9 commit 125921b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Flunt/Validations/IntValidationContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public Contract<T> IsLowerOrEqualsThan(int val, int comparer, string key) =>
/// <returns></returns>
public Contract<T> IsLowerOrEqualsThan(int val, int comparer, string key, string message)
{
if (val < comparer)
if (val > comparer)
AddNotification(key, message);

return this;
Expand Down

0 comments on commit 125921b

Please sign in to comment.