Skip to content

Commit 5524c68

Browse files
authored
Update Array.xml change ArgumentOutOfRangeException description for 'startIndex' parameter on FindIndex methods (#9720)
Changed it to match String.Substring, because the behavior is identical (and original description is arguably wrong or hard to understand). Fixes: #9719
1 parent ccbfb85 commit 5524c68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System/Array.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3825,7 +3825,7 @@
38253825

38263826
<paramref name="match" /> is <see langword="null" />.</exception>
38273827
<exception cref="T:System.ArgumentOutOfRangeException">
3828-
<paramref name="startIndex" /> is outside the range of valid indexes for <paramref name="array" />.</exception>
3828+
<paramref name="startIndex" /> is less than zero or greater than the length of the <paramref name="array" />.</exception>
38293829
<altmember cref="M:System.Array.Exists``1(``0[],System.Predicate{``0})" />
38303830
<altmember cref="M:System.Array.Find``1(``0[],System.Predicate{``0})" />
38313831
<altmember cref="M:System.Array.FindLast``1(``0[],System.Predicate{``0})" />
@@ -3917,7 +3917,7 @@
39173917

39183918
<paramref name="match" /> is <see langword="null" />.</exception>
39193919
<exception cref="T:System.ArgumentOutOfRangeException">
3920-
<paramref name="startIndex" /> is outside the range of valid indexes for <paramref name="array" />.
3920+
<paramref name="startIndex" /> is less than zero or greater than the length of the <paramref name="array" />.
39213921

39223922
-or-
39233923

0 commit comments

Comments
 (0)