Skip to content

Commit e063a9c

Browse files
committed
Fixed a typo
1 parent bb95e64 commit e063a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit/Diagnostics/Guard.Comparable.Generic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public static void IsLessThan<T>(T value, T maximum, string name)
220220
public static void IsLessThanOrEqualTo<T>(T value, T maximum, string name)
221221
where T : notnull, IComparable<T>
222222
{
223-
if (value.CompareTo(maximum) >= 0)
223+
if (value.CompareTo(maximum) <= 0)
224224
{
225225
return;
226226
}

0 commit comments

Comments
 (0)