Skip to content

Commit 9a5f012

Browse files
Fix typos in ArgumentOutOfRangeException.cs (#111100)
* Fix typos in ArgumentOutOfRangeException.cs Fixed some minor typos in docs comments for throw helpers. * Update ThrowHelper.cs --------- Co-authored-by: Stephen Toub <[email protected]>
1 parent 128321e commit 9a5f012

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libraries/System.Collections/src/System/Collections/ThrowHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static void ThrowIfGreaterThan<T>(T value, T other, [CallerArgumentExpres
7171
}
7272

7373
/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary>
74-
/// <param name="value">The argument to validate as greatar than or equal than <paramref name="other"/>.</param>
74+
/// <param name="value">The argument to validate as greater than or equal than <paramref name="other"/>.</param>
7575
/// <param name="other">The value to compare with <paramref name="value"/>.</param>
7676
/// <param name="paramName">The name of the parameter with which <paramref name="value"/> corresponds.</param>
7777
public static void ThrowIfLessThan<T>(T value, T other, [CallerArgumentExpression(nameof(value))] string? paramName = null)

src/libraries/System.Private.CoreLib/src/System/ArgumentOutOfRangeException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static void ThrowIfGreaterThanOrEqual<T>(T value, T other, [CallerArgumen
196196
}
197197

198198
/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than <paramref name="other"/>.</summary>
199-
/// <param name="value">The argument to validate as greatar than or equal than <paramref name="other"/>.</param>
199+
/// <param name="value">The argument to validate as greater than or equal than <paramref name="other"/>.</param>
200200
/// <param name="other">The value to compare with <paramref name="value"/>.</param>
201201
/// <param name="paramName">The name of the parameter with which <paramref name="value"/> corresponds.</param>
202202
public static void ThrowIfLessThan<T>(T value, T other, [CallerArgumentExpression(nameof(value))] string? paramName = null)
@@ -207,7 +207,7 @@ public static void ThrowIfLessThan<T>(T value, T other, [CallerArgumentExpressio
207207
}
208208

209209
/// <summary>Throws an <see cref="ArgumentOutOfRangeException"/> if <paramref name="value"/> is less than or equal <paramref name="other"/>.</summary>
210-
/// <param name="value">The argument to validate as greatar than than <paramref name="other"/>.</param>
210+
/// <param name="value">The argument to validate as greater than than <paramref name="other"/>.</param>
211211
/// <param name="other">The value to compare with <paramref name="value"/>.</param>
212212
/// <param name="paramName">The name of the parameter with which <paramref name="value"/> corresponds.</param>
213213
public static void ThrowIfLessThanOrEqual<T>(T value, T other, [CallerArgumentExpression(nameof(value))] string? paramName = null)

0 commit comments

Comments
 (0)